Skip to content

Conversation

@wincent
Copy link
Owner

@wincent wincent commented Oct 7, 2022

As explained here:

Before:

  • If I pushed to a branch, without making a PR, actions would run once.
  • If I pushed to a branch, then opened a PR, actions would run twice.
  • If somebody else opened a PR (from a fork), actions would run once.

After:

  • If I push to a branch, without making a PR, actions will run once.
  • If I push to a branch, then open a PR, actions will run once (ie. due to the push, not the PR).
  • If somebody else opens a PR (from a fork), actions will run once.

As explained here:

- https://wildwolf.name/github-actions-how-to-avoid-running-the-same-workflow-multiple-times/

Before:

- If I pushed to a branch, without making a PR, actions would run once.
- If I pushed to a branch, then opened a PR, actions would run twice.
- If somebody else opened a PR (from a fork), actions would run once.

After:

- If I push to a branch, without making a PR, actions will run once.
- If I push to a branch, then open a PR, actions will run once (ie. due
  to the push, not the PR).
- If somebody else opens a PR (from a fork), actions will run once.
@wincent wincent force-pushed the wincent/actions-dupes branch from e906446 to f8d67e2 Compare October 7, 2022 09:55
@wincent
Copy link
Owner Author

wincent commented Oct 7, 2022

Evidence that this works (note the entries labeled with "skipped"):

Microsoft Edge 2022-10-07 09 57 08 UTC

@wincent wincent merged commit f8d67e2 into main Oct 7, 2022
@wincent wincent deleted the wincent/actions-dupes branch October 7, 2022 09:57
@wincent wincent restored the wincent/actions-dupes branch October 7, 2022 10:00
@wincent wincent deleted the wincent/actions-dupes branch June 19, 2025 19:46
@wincent wincent restored the wincent/actions-dupes branch June 19, 2025 20:05
@wincent wincent deleted the wincent/actions-dupes branch June 23, 2025 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants