Skip to content

Commit

Permalink
Set branch url in summary
Browse files Browse the repository at this point in the history
Should work this time
  • Loading branch information
spaceo committed May 17, 2024
1 parent 9c9746c commit 58950fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/create-cms-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:

- name: Set env variables
run: |
echo ${{ toJson(github.repository.html_url) }}
RELEASE_BRANCH=$(jq -r '.release_branch' release-info.json)
RELEASE_DOWNLOAD_URL=$(jq -r '.release_download_url' release-info.json)
DEPENDENCY_PACKAGE=$(jq -r '.dependency_package' release-info.json)
Expand Down Expand Up @@ -53,5 +52,7 @@ jobs:
# TODO: remove hardcoded org/repo
run: |
echo "Requested external PR at: reload/poc-dpl-cms-pr-trigger" >> $GITHUB_STEP_SUMMARY
echo "Based on the [${{ env.RELEASE_BRANCH }} branch](/tree/${{ env.RELEASE_BRANCH }})" >> $GITHUB_STEP_SUMMARY
echo "Based on the [${{ env.RELEASE_BRANCH }}](${{ env.BRANCH_URL }}) branch" >> $GITHUB_STEP_SUMMARY
if: ${{ steps.invoke_external_pr_workflow.outcome == 'success' }}
env:
BRANCH_URL: "${{ github.event.repository.html_url }}/tree/${{ env.RELEASE_BRANCH }}"
2 changes: 0 additions & 2 deletions .github/workflows/create-release-on-branch-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
# Using branch names as tags allows other projects to track unreleased
# development.
run: |
echo ${{ toJson(github.event.repository.html_url) }}
RELEASE_BRANCH=$(echo ${GITHUB_REF#refs/heads/})
RELEASE_BRANCH_SLUGGED=$(echo $RELEASE_BRANCH | sed -E -e 's/[^[:alnum:]]+/-/g' -e 's/^-+|-+$//g' | tr '[:upper:]' '[:lower:]')
RELEASE_SHA=${{ github.sha }}
Expand Down

0 comments on commit 58950fb

Please sign in to comment.