Skip to content

Commit

Permalink
Ensure workflow is triggered on pull request updates (#2)
Browse files Browse the repository at this point in the history
* Ensure workflow is triggered on pull request update

Ensure `synchronize` event also trigger the workflow, as relying solely on push events failed for pull requests from forked repositories.

See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request

* Prevent multiple triggers of the workflow on pull request

Push triggers outside of pull requests are omitted intentionally to prevent duplicate workflow runs. Since this repository mainly involves managing service declarations rather than altering software features, running tests on every commit of every branch isn't seen as essential compared to traditional software.
  • Loading branch information
Ndpnt authored Feb 6, 2024
1 parent 3013a88 commit 7d7212a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Validate declarations

on:
push:
branches-ignore:
- 'main'
pull_request:
types: [ opened, reopened ]
workflow_call:

jobs:
Expand Down

0 comments on commit 7d7212a

Please sign in to comment.