Skip to content

Commit 7141340

Browse files
committed
update e2e test
1 parent d82d1de commit 7141340

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

.github/workflows/weekly_e2e.yml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,36 @@ on:
77
jobs:
88
weekly-e2e-check:
99
if: github.repository_owner == 'alibabacloud-automation'
10+
name: 'weekly e2e check'
1011
runs-on: ubuntu-latest
1112
permissions: write-all
1213
steps:
1314
- name: checkout
1415
uses: actions/checkout@v3
16+
- name: set id
17+
id: set-job-id
18+
uses: ayachensiyuan/get-action-job-id@v1.6
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
job-name: 'weekly e2e check'
23+
- name: Get job id
24+
run: |
25+
echo "The current job id is ${{ steps.set-job-id.outputs.jobId }}"
1526
- name: weekly e2e test
1627
run: |
1728
objectPath="github-action/${{github.repository}}/weekly-e2e/Action-${{github.run_number}}-${{github.run_id}}-${{ steps.set-job-id.outputs.jobId }}"
1829
go run scripts/curl_fc_trigger.go main ${{github.repository}} ${objectPath}
1930
go run scripts/e2e_check.go ${objectPath}
20-
- name: update test record
21-
run: |
22-
git add TestRecord.md
23-
cd .git
24-
sudo chmod -R a+rwX .
25-
sudo find . -type d -exec chmod g+s '{}' +
26-
- name: Commit & Push changes
27-
uses: actions-js/push@master
28-
with:
29-
github_token: ${{ secrets.GITHUB_TOKEN }}
30-
message: 'Update TestRecord'
31-
branch: main
31+
# - name: update test record
32+
# run: |
33+
# git add TestRecord.md
34+
# cd .git
35+
# sudo chmod -R a+rwX .
36+
# sudo find . -type d -exec chmod g+s '{}' +
37+
# - name: Commit & Push changes
38+
# uses: actions-js/push@master
39+
# with:
40+
# github_token: ${{ secrets.GITHUB_TOKEN }}
41+
# message: 'Update TestRecord'
42+
# branch: main

0 commit comments

Comments
 (0)