Skip to content

Commit

Permalink
Added concurrency protections
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilunicmobile committed Jan 10, 2025
1 parent 0386058 commit f68b17b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/statistics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ name: Statistics Tracker

on:
push
workflow_call

permissions:
pages: write
id-token: write

jobs:

build:
concurrency:
group: statistics-deploy
cancel-in-progress: true
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
defaults:
Expand Down Expand Up @@ -41,6 +44,9 @@ jobs:
FRC2593/javabot-2025/.github/workflows/statistics.yml@main

deploy:
concurrency:
group: statistics-deploy
cancel-in-progress: true
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit f68b17b

Please sign in to comment.