File tree 1 file changed +39
-0
lines changed
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Update an issues state in a mapping
2
+
3
+ on :
4
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onevent_nametypes
5
+ issues :
6
+ # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issues
7
+ types :
8
+ - reopened
9
+ - closed
10
+
11
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
12
+ permissions :
13
+ contents : write # for "git push"
14
+
15
+ defaults :
16
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#defaultsrun
17
+ run :
18
+ # Enable fail-fast behavior using set -eo pipefail
19
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
20
+ shell : bash
21
+
22
+ jobs :
23
+ update-mapping :
24
+ name : Update an issues state
25
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on
26
+ runs-on : ubuntu-20.04
27
+ steps :
28
+ - name : Clone source code
29
+ uses :
actions/[email protected] # https://github.com/actions/checkout
30
+ with :
31
+ # Whether to configure the token or SSH key with the local git config. Default: true
32
+ persist-credentials : true
33
+ # https://github.com/actions/checkout#checkout-a-different-branch
34
+ ref : generated-todos
35
+
36
+ - name : Show a payload
37
+ env :
38
+ GITHUB_CONTEXT : ${{ toJson(github) }}
39
+ run : echo "$GITHUB_CONTEXT"
You can’t perform that action at this time.
0 commit comments