Skip to content

Commit

Permalink
Ignore master and develop branches
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceo committed May 17, 2024
1 parent 961cf13 commit fd9ee42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/create-cms-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
name: release-info.json
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}

- name: Set env variables
run: |
RELEASE_BRANCH=$(jq -r '.release_branch' release-info.json)
Expand All @@ -22,6 +23,7 @@ jobs:
echo "RELEASE_BRANCH=$RELEASE_BRANCH" >> $GITHUB_ENV
echo "RELEASE_DOWNLOAD_URL=$RELEASE_DOWNLOAD_URL" >> $GITHUB_ENV
echo "DEPENDENCY_PACKAGE=$DEPENDENCY_PACKAGE" >> $GITHUB_ENV
- name: Invoke external PR workflow
id: invoke_external_pr_workflow
uses: fjogeleit/http-request-action@v1
Expand All @@ -43,6 +45,9 @@ jobs:
"dependency_package": "${{ env.DEPENDENCY_PACKAGE }}"
}
}
# Only invoke external PR workflow if the release branch is not develop or master
if: ${{ !contains(fromJSON('["develop", "master"]'), env.RELEASE_BRANCH) }}

- name: Adding summary
# TODO: remove hardcoded org/repo
run: |
Expand Down

0 comments on commit fd9ee42

Please sign in to comment.