Skip to content

Commit 55260c2

Browse files
committed
Allow manual workflow dispatch from repository branches
Signed-off-by: Ravneet Arora <[email protected]>
1 parent 17416ca commit 55260c2

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎.github/workflows/docker-manual.yml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,14 @@ jobs:
2727
sha: ${{ steps.source.outputs.sha }}
2828
tag: ${{ steps.source.outputs.tag }}
2929
steps:
30-
- name: Require workflow from main in block/buzz
30+
- name: Require block/buzz repository
3131
env:
32-
DISPATCH_REF: ${{ github.ref }}
3332
REPOSITORY: ${{ github.repository }}
3433
shell: bash
3534
run: |
3635
set -euo pipefail
37-
[[ "$REPOSITORY" == block/buzz && "$DISPATCH_REF" == refs/heads/main ]] || {
38-
echo '::error::Run the workflow from main in block/buzz; use source_ref to select code.'
36+
[[ "$REPOSITORY" == block/buzz ]] || {
37+
echo '::error::Run this workflow in block/buzz; use source_ref to select repository code.'
3938
exit 1
4039
}
4140
- name: Resolve a source reachable from a repository branch

0 commit comments

Comments
 (0)