Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
update workflows to also run on pull requests but not make any changes until they are merged to master
  • Loading branch information
jsimonclark committed Sep 8, 2024
1 parent 105395b commit fb0d843
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- 'master'
pull_request:
branches:
- '*' # To ensure it runs on all PRs

env:
GIT_USER_NAME: BattINFO Developers
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/update_foops_badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
workflows: ["docs"]
types:
- completed
pull_request: # Add this to run on pull request

env:
GIT_USER_NAME: BattINFO Developers
Expand Down Expand Up @@ -52,6 +53,7 @@ jobs:
git diff --staged --quiet || git commit -m "Update FOOPS score badge"
- name: Push changes
if: github.ref == 'refs/heads/master' # Only push changes when on master
run: git push origin HEAD:master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fb0d843

Please sign in to comment.