Skip to content

Commit

Permalink
Update release_pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vinmassaro authored Feb 7, 2024
1 parent 0857a20 commit 2657fc2
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/release_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.number }}
RELEASE_PR_URL: ${{ github.event.pull_request._links.html.href }}
RELEASE_SITES: ${{ vars.RELEASE_SITES }}
jobs:
setup:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -139,7 +140,6 @@ jobs:
env:
RELEASE_BRANCH: ${{ vars.RELEASE_BRANCH }}
PR_NUMBER: ${{ needs.create_pull_request.outputs.PR_NUMBER }}
RELEASE_SITES: ${{ vars.RELEASE_SITES }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -186,12 +186,4 @@ jobs:
${{ runner.os }}-terminus-cache-
- name: Clean up
run: |
process_site() {
site_with_env="$1"
site_machine_name="${site_with_env%.*}"
terminus multidev:delete "$site_with_env"."$RELEASE_BRANCH" --delete-branch -y
}
export process_site
readarray -t release_sites <<< "$(tr -d '\r' <<< "$RELEASE_SITES")"
parallel --jobs 0 --keep-order --line-buffer process_site ::: "${release_sites[@]}"
run: ./.ci/github/clean_up

0 comments on commit 2657fc2

Please sign in to comment.