Skip to content

Commit

Permalink
Use env rather than steps.output
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Rockwood <[email protected]>
  • Loading branch information
benr committed Feb 29, 2024
1 parent 9f84327 commit 2144292
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/PREview-create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,12 @@ jobs:
needs: [deploy-update]
steps:
- name: Obtain Bucket Name
id: data
uses: ./.github/actions/PREview-data
- uses: mshick/add-pr-comment@v2
if: success()
continue-on-error: true
with:
message: |
**PREview has been updated at ${{ steps.data.outputs.url }}**
**PREview has been updated at ${{ env.URL }}**
repo-token: ${{ secrets.GITHUB_TOKEN }}
allow-repeats: true
3 changes: 1 addition & 2 deletions .github/workflows/PREview-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ jobs:
needs: [deploy-update]
steps:
- name: Obtain URL
id: data
uses: ./.github/actions/PREview-data
- uses: mshick/add-pr-comment@v2
if: success()
continue-on-error: true
with:
message: |
**PREview has been updated at ${{ steps.data.outputs.url }}**
**PREview has been updated at ${{ env.URL }}**
repo-token: ${{ secrets.GITHUB_TOKEN }}
allow-repeats: true
3 changes: 1 addition & 2 deletions .github/workflows/_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v2"
- name: Obtain Bucket Name
id: data
uses: ./.github/actions/PREview-data
- name: Upload static content to buckets
run: gsutil -m -h "Cache-control:public, max-age=60" rsync -r -c -C -d ${{ inputs.src_dir }}/ gs://${{ steps.data.outputs.bucket }}
run: gsutil -m -h "Cache-control:public, max-age=60" rsync -r -c -C -d ${{ inputs.src_dir }}/ gs://${BUCKET}

0 comments on commit 2144292

Please sign in to comment.