Skip to content

Commit

Permalink
Default branch validate
Browse files Browse the repository at this point in the history
  • Loading branch information
cdivitotawela committed Sep 25, 2024
1 parent 7f4f7ff commit 4d610eb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ jobs:
env:
RELEASE_NAME: "${{ inputs.tag }}"
steps:
- name: Check default branch
run: |
echo "github.ref_name=${{ github.ref_name }}"
echo "github.event.repository.default_branch=${{ github.event.repository.default_branch }}"
if [[ ${{ github.ref_name }} != ${{ github.event.repository.default_branch }} ]]
then
echo "This workflow can only be run on default branch"
exit 1
fi
- name: Pre-process Release Name
id: pre_process_release_name
run: |
Expand Down

0 comments on commit 4d610eb

Please sign in to comment.