-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use manual commit input (#6218)
* chore: use manual commit input * chore: include commit sha in the output file
- Loading branch information
1 parent
4f453aa
commit 69e75bd
Showing
1 changed file
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
name: Generate test reports | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
inputs: | ||
commit: | ||
description: 'Commit SHA' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
generate_test_report: | ||
|
@@ -13,12 +16,7 @@ jobs: | |
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set environment variables | ||
run: | | ||
echo "BRANCH_NAME=$(git branch --show-current)" >> $GITHUB_ENV | ||
echo "COMMIT_URL=${{github.event.head_commit.url}}" >> $GITHUB_ENV | ||
ref: ${{ inputs.commit }} | ||
|
||
- name: Set TITLE | ||
env: | ||
|
@@ -54,8 +52,7 @@ jobs: | |
- name: Print environment variables | ||
run: | | ||
echo -e "BRANCH_NAME = ${BRANCH_NAME}" >> ./unit-tests.log | ||
echo -e "COMMIT_URL = ${COMMIT_URL}" >> ./unit-tests.log | ||
echo -e "COMMIT SHA = ${{ inputs.commit }}" >> ./unit-tests.log | ||
- name: Save test coverage results | ||
uses: actions/upload-artifact@v4 | ||
|