Skip to content

Commit

Permalink
chore: use manual commit input (#6218)
Browse files Browse the repository at this point in the history
* chore: use manual commit input

* chore: include commit sha in the output file
  • Loading branch information
PatrykBuniX authored May 13, 2024
1 parent 4f453aa commit 69e75bd
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/generate_test_report.yml
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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 69e75bd

Please sign in to comment.