Skip to content

Commit

Permalink
ci: adjust concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewiscowles1986 committed Mar 31, 2024
1 parent e2aacf8 commit 51fd2e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
Expand Down
17 changes: 4 additions & 13 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: documentation

on:
push:
branches: [main]
pull_request:
push:
branches:
- main
workflow_dispatch:

concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
Expand Down Expand Up @@ -46,13 +47,3 @@ jobs:
publish_dir: docs/_build/html
destination_dir: ./
keep_files: true
- name: force-redeployment
run: |
git fetch --all
git checkout gh-pages
git pull --ff-only
touch .nojekyll
git add -f .nojekyll
git config user.name "GitHub Actions Bot"
git config user.email "[email protected]"
git commit -am "docs: force redeploy"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- published

concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
Expand Down

0 comments on commit 51fd2e9

Please sign in to comment.