File tree 3 files changed +19
-56
lines changed
3 files changed +19
-56
lines changed Original file line number Diff line number Diff line change 44
44
jobs :
45
45
PRChanged2 :
46
46
name : " run-check"
47
+ permissions :
48
+ actions : read
49
+ checks : read
50
+ contents : read
51
+ issues : read
52
+ pull-requests : read
53
+ statuses : read
47
54
uses : ./.github/workflows/AsteriskPRChanged2.yml
48
55
49
56
Cleanup :
55
62
run : |
56
63
# Wait then get testsuite PR
57
64
58
- wget -qO asterisk-ci-actions.tar.gz \
59
- https://github.com/${ACTIONS_OWNER}/${ACTIONS_REPO}/archive/refs/heads/${ACTIONS_BRANCH}.tar.gz
60
- tar -xf asterisk-ci-actions.tar.gz --transform="s/^${ACTIONS_REPO}-${ACTIONS_BRANCH}/asterisk-ci-actions/g"
61
- ls -al
62
-
63
- echo "SOME_VARIABLE: ${SOMEVAR}"
64
-
65
- gh --repo ${REPO} pr edit ${PR_NUMBER} --add-label bug
65
+ echo "${GITHUB_TOKEN}" | md5sum
66
+ echo "${GH_TOKEN}" | md5sum
66
67
Original file line number Diff line number Diff line change 9
9
required : false
10
10
default : ' { "owner": "asterisk", "repo": "asterisk-ci-actions", "branch": "main" }'
11
11
12
- permissions :
13
- actions : read
14
- # attestations: read|write|none
15
- checks : read
16
- contents : read
17
- # deployments: read|write|none
18
- # id-token: write|none
19
- issues : read
20
- # discussions: read|write|none
21
- # packages: read|write|none
22
- # pages: read|write|none
23
- pull-requests : read
24
- # repository-projects: read|write|none
25
- # security-events: read|write|none
26
- statuses : read
27
-
28
12
env :
29
13
REPO : ${{ github.repository }}
30
14
REPO_DIR : ${{ github.workspace }}/${{ github.event.repository.name }}
46
30
steps :
47
31
- id : setup
48
32
run : |
49
- mkdir cacheit
50
- ls -al > cacheit/dirlist.txt
51
- mkdir output
52
- ls -al > output/dirlist2.txt
53
- echo "XXX${{ secrets.SOME_SECRET }}XXX" > output/test.out
54
- echo "VVV${{ vars.SOME_VARIABLE }}VVV" >> output/test.out
33
+ echo "${GITHUB_TOKEN}" | md5sum
34
+ echo "${GH_TOKEN}" | md5sum
35
+
55
36
56
37
# - id: cache-build-output
57
38
# name: CacheBuildProducts
60
41
# path: cacheit
61
42
# key: Cleanup2-${{ env.PR_NUMBER }}
62
43
63
- - name : Save Output
64
- if : always()
65
- id : save-output
66
- uses : actions/upload-artifact@v4
67
- with :
68
- name : Cleanup2-${{ env.PR_NUMBER }}
69
- if-no-files-found : ignore
70
- path : output
71
-
72
44
Original file line number Diff line number Diff line change 34
34
GH_TOKEN : ${{ github.token }}
35
35
36
36
jobs :
37
- PRChanged :
38
- name : " run-check"
39
- concurrency :
40
- group : check-${{ github.base_ref }}-${{ github.ref_name }}
41
- cancel-in-progress : true
42
- uses : ./.github/workflows/AsteriskPRChanged.yml
43
-
44
37
Cleanup0 :
45
38
needs : [ PRChanged ]
46
39
if : ${{ always() }}
@@ -49,15 +42,12 @@ jobs:
49
42
- id : setup
50
43
run : |
51
44
mkdir output
52
- echo "SSS${{ secrets.SOME_SECRET }}SSS" > output/xxx.txt
45
+ echo "${GITHUB_TOKEN}" | md5sum
53
46
54
- - name : Save Output
55
- if : always()
56
- id : save-output
57
- uses : actions/upload-artifact@v4
58
- with :
59
- name : Cleanup0-${{ env.PR_NUMBER }}
60
- if-no-files-found : ignore
61
- path : output
47
+ PRChanged :
48
+ name : " run-check"
49
+ concurrency :
50
+ group : check-${{ github.base_ref }}-${{ github.ref_name }}
51
+ cancel-in-progress : true
52
+ uses : ./.github/workflows/AsteriskPRChanged.yml
62
53
63
-
You can’t perform that action at this time.
0 commit comments