Skip to content

Commit

Permalink
Merge branch 'main' into es-banner
Browse files Browse the repository at this point in the history
  • Loading branch information
AnouckColson authored Sep 5, 2023
2 parents 4f6b040 + 54c2613 commit a76859d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-from-fork.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ jobs:
if ! $(platform environments --format plain --columns title,status | grep '${{ env.BRANCH_TITLE }}' | grep -q Active); then
echo "::notice::Updating Platform.sh environment title for better tracking..."
# in this case we DO want to statically include `pr-##` since we're referring to a pull request number
newTitle="(pr-${{ github.event.number }}) ${{ github.event.pull_request.title }}"
prTitle=${{ github.event.pull_request.title }}
newTitle="(pr-${{ github.event.number }}) $(echo prTitle | gawk '{ gsub(/"/,"\\\"") } 1')"
platform environment:info title "${newTitle}" -e ${{ env.BRANCH_TITLE }}
echo "::notice::Activating environment ${{ env.BRANCH_TITLE }}"
platform environment:activate -e ${{ env.BRANCH_TITLE }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/manage-environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jobs:
- name: Set environment title
run: |
# @todo - this is the same as the last step in build-from-fork:jobs:build. See if we can combine the two
newTitle="(pr-${{ github.event.number }}) ${{ github.event.pull_request.title }}"
prTitle=${{ github.event.pull_request.title }}
newTitle="(pr-${{ github.event.number }}) $(echo prTitle | gawk '{ gsub(/"/,"\\\"") } 1')"
currentTitle=$(platform environment:info -e ${{ github.event.pull_request.head.ref }} title)
if [[ "${currentTitle}" != "${newTitle}" ]]; then
echo "::notice::Setting environment's title"
Expand Down

0 comments on commit a76859d

Please sign in to comment.