Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Jul 2, 2024
1 parent 7b7ef5b commit 130d45c
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/tests_results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: gh-pages

- name: Download and Extract Artifacts
uses: dawidd6/action-download-artifact@v6
with:
Expand Down Expand Up @@ -110,7 +114,9 @@ jobs:
- name: Create output folder
if: ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }}
run: mkdir -p runtime-tests-results
run: |
rm -rf artifacts
mkdir -p runtime-tests-results
- name: Generate badge
if: ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }}
Expand All @@ -121,9 +127,11 @@ jobs:
output: runtime-tests-results/badge.svg
color: ${{ job.status == 'success' && 'green' || 'red' }}

- name: Deploy badge
- name: Push badge
if: ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./runtime-tests-results/badge.svg
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add --all
git commit -m "Updated runtime tests badge"
git push origin HEAD:gh-pages

0 comments on commit 130d45c

Please sign in to comment.