Skip to content

Commit

Permalink
Merge branch '1.1' into 1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 6, 2024
2 parents 7168814 + 5015863 commit e1cbb81
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ runs:
echo "type=$type" >> $GITHUB_OUTPUT
- name: Check if should dispatch workflow
id: checkshoulddispatch
shell: bash
env:
RUN_BRANCHES_ON_PREVIOUS_MAJOR: "false"
Expand All @@ -38,11 +39,14 @@ runs:
major_type=$(echo $TYPE | cut -d "," -f 1)
if [[ $RUN_BRANCHES_ON_PREVIOUS_MAJOR == "false" ]] && [[ $major_type == "previous" ]]; then
echo "Workflow is configured to not dispatch workflow for branches on previous major. Exiting."
echo "do_dispatch=false" >> $GITHUB_OUTPUT
exit 0
fi
echo "do_dispatch=true" >> $GITHUB_OUTPUT
- name: Get branch
id: getbranch
if: steps.checkshoulddispatch.outputs.do_dispatch == 'true'
shell: bash
env:
TYPE: ${{ steps.gettype.outputs.type }}
Expand Down Expand Up @@ -119,6 +123,7 @@ runs:
echo "branch=$branch" >> $GITHUB_OUTPUT
- name: Send API request
if: steps.checkshoulddispatch.outputs.do_dispatch == 'true'
shell: bash
env:
GITHUB_REPOSITORY: ${{ github.repository }}
Expand Down

0 comments on commit e1cbb81

Please sign in to comment.