Skip to content

Commit

Permalink
Update counter workflow to support manual trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
tylergu authored Apr 30, 2024
1 parent 826982d commit 11e87a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/counter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
workflow_dispatch:

jobs:
conditional_job_check_files:
Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:
git diff --quiet bugs.md || echo "::set-output name=are_bugs_changed::true"
- name: Commit files
if: steps.verify_diff.outputs.are_bugs_changed == 'true'
if: needs.conditional_job_check_files.outputs.docs_changed == 'True' || github.event_name == 'workflow_dispatch'
run: |
git config --local user.name github-actions[bot]
git config --local user.email github-actions[bot]@users.noreply.github.com
Expand Down

0 comments on commit 11e87a9

Please sign in to comment.