Skip to content

Commit

Permalink
Actions: allow manual triggering
Browse files Browse the repository at this point in the history
I tried to get Actions to run on contributor's PRs back in:
    2023-09-19 Actions: don't ignore if '/' in branch name
    748cb93
but it didn't work.

After reading the docs some more, my theory is that the since the
previous yaml ran "on a push to any branch", that meant "on a push to
any branch in the Tarsnap/tarsnap repository", which didn't apply to
third parties, since they were pushing to their own fork.

Adding "workflow_dispatch" should allow us to manualy trigger a check
for third-party PRs.
  • Loading branch information
gperciva committed Oct 21, 2023
1 parent 2fd649a commit e53cd3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Compile & test

# Run whenever we push to any branch other than [coverity-scan].
# Run whenever we push to any branch other than [coverity-scan], or if we
# manually trigger a workflow.
on:
push:
branches:
- '**'
- '!coverity-scan'
workflow_dispatch:

env:
# Shared variables amongst all projects / platforms / compilers.
Expand Down

0 comments on commit e53cd3f

Please sign in to comment.