We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b64adef commit 06da697Copy full SHA for 06da697
.github/workflows/release.yml
@@ -34,6 +34,13 @@ jobs:
34
java-version: '17'
35
distribution: 'temurin'
36
37
+ - name: Fail if Release and not on Default branch
38
+ if: ${{ github.event.repository.default_branch != github.ref_name }}
39
+ uses: actions/github-script@v7
40
+ with:
41
+ script: |
42
+ core.setFailed('Releases can not be created on a feature branch. Branch: ${{ github.ref_name }}')
43
+
44
- name: Update Git user
45
run: |
46
git config --local user.name "IABTechLab"
0 commit comments