Skip to content

Commit

Permalink
chore(workflows): update workflow triggers
Browse files Browse the repository at this point in the history
- Updated workflow triggers for various workflows:
  - dependabot-auto-merge
  - labeler
  - lint markdown
  - php-cs-fixer
  - psalm
  - rector
  - secret-check
  - stale
  - tests
  - update changelog
- Changed 'on' field to use 'workflow_dispatch' trigger in addition to existing triggers
- Added 'workflow_dispatch' trigger to all workflows
  • Loading branch information
guanguans committed Apr 22, 2024
1 parent 598c813 commit 1f0d16f
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dependabot-auto-merge
on: pull_request_target
on: [ workflow_dispatch, pull_request_target ]

permissions:
pull-requests: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# https://github.com/actions/labeler

name: labeler
on: [ pull_request ]
on: [ workflow_dispatch, pull_request ]

jobs:
label:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-md.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: lint markdown

on: [ push, pull_request ]
on: [ workflow_dispatch, push, pull_request ]

jobs:
lint-markdown:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: check & fix styling

on: [ push ]
on: [ workflow_dispatch, push ]

jobs:
php-cs-fixer:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: psalm

on:
workflow_dispatch:
push:
paths:
- '**.php'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: rector

on:
workflow_dispatch:
push:
paths:
- '**.php'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/secret-check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: secrets check

on: [ push ]
on: [ workflow_dispatch, push ]

jobs:
security-check:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
name: Mark stale issues and pull requests

on:
workflow_dispatch:
schedule:
- cron: '30 08 * * *'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: tests

on: [ push, pull_request ]
on: [ workflow_dispatch,push, pull_request ]

jobs:
test:
Expand Down Expand Up @@ -41,5 +41,5 @@ jobs:
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
fail_ci_if_error: false # optional (default = false)
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
1 change: 1 addition & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "update changelog"

on:
workflow_dispatch:
release:
types: [ released ]

Expand Down

0 comments on commit 1f0d16f

Please sign in to comment.