-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.17 KB
/
git-gopher.yml
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
name: git-gopher
on:
pull_request:
branches: main
types: [ closed ]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
jobs:
action:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Cache
uses: actions/cache@v3
with:
path: cache.json
key: ${{ github.ref }}
- name: Analyze Workflow
id: go-gopher
run: |
gh release download -R https://github.com/Git-Gopher/go-gopher-action -p 'go-gopher-github-action'
chmod +x ./go-gopher-github-action
./go-gopher-github-action
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
PR_NUMBER: ${{ github.event.number }}
WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- name: Add PR Comment
uses: marocchino/sticky-pull-request-comment@v2
with:
message: "${{steps.go-gopher.outputs.pr_summary}}"
- name: Artifact outputs
uses: actions/upload-artifact@v3
with:
path: |
log-**.json
cache.json