-
Notifications
You must be signed in to change notification settings - Fork 22
47 lines (36 loc) · 1.34 KB
/
create-commit-message.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Generate Examples
permissions:
pull-requests: write
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout PR head
uses: actions/checkout@v3
- name: Fetch base branch
run: git fetch --unshallow origin ${{ github.base_ref }}
- name: Fetch base branch
run: git fetch origin ${{ github.base_ref }}
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Run Deno Script
run: deno run --allow-read --allow-write --unstable --allow-run .scripts/generate-commit-message.ts ${{ github.base_ref }} ${{ github.head_ref }}
- name: PR comment with file
uses: thollander/actions-comment-pull-request@v2
with:
filePath: ${{ github.workspace }}/.scripts/commit-message.txt
comment_tag: sandboxes
create_if_not_exists: true
- name: Run Deno Script
run: deno run --allow-read --allow-write --unstable --allow-net --allow-run .scripts/generate-commit-message.ts ${{ github.base_ref }} ${{ github.head_ref }} true
- name: PR comment with file
uses: thollander/actions-comment-pull-request@v2
with:
filePath: ${{ github.workspace }}/.scripts/commit-message.txt
comment_tag: sandboxes
create_if_not_exists: true