Skip to content

Commit 974f61b

Browse files
committed
autoSync by Github Action
1 parent b610c6e commit 974f61b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/weekly_e2e.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ jobs:
2323
- name: Get job id
2424
run: |
2525
echo "The current job id is ${{ steps.set-job-id.outputs.jobId }}"
26+
- name: Extract branch name
27+
shell: bash
28+
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
29+
id: extract_branch
2630
- name: weekly e2e test
2731
run: |
2832
objectPath="github-action/${{github.repository}}/weekly-e2e/Action-${{github.run_number}}-${{github.run_id}}-${{ steps.set-job-id.outputs.jobId }}"
29-
go run scripts/curl_fc_trigger.go main ${{github.repository}} ${objectPath}
33+
echo "default branch: ${{ steps.extract_branch.outputs.branch }}"
34+
go run scripts/curl_fc_trigger.go ${{ steps.extract_branch.outputs.branch }} ${{github.repository}} ${objectPath}
3035
go run scripts/e2e_check.go ${objectPath}
3136
# - name: update test record
3237
# run: |

0 commit comments

Comments
 (0)