Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit faf9c32

Browse files
committed
Output action_ref to see if it is correct
1 parent 77ca70a commit faf9c32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ jobs:
5757
steps:
5858
- name: Prevent non-dry-run releases on branches
5959
if: ${{ github.action_ref != 'main' && !inputs.dry_run }}
60-
run: exit 1
60+
run: |
61+
echo "Release not allowed on ${{ github.action_ref }}, use dry-run."
62+
exit 1
6163
6264
- uses: actions/checkout@v3
6365
with:

0 commit comments

Comments
 (0)