-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update adev-preview-deployment to no longer use metadata from bui…
…ld output (#988) Use the github event values instead of the user generated information.
- Loading branch information
1 parent
0257838
commit 26f3423
Showing
2 changed files
with
2 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,18 +36,11 @@ jobs: | |
path: ${{ env.BUILD_DIR }} | ||
github-token: '${{secrets.GITHUB_TOKEN}}' | ||
run-id: ${{ github.event.workflow_run.id }} | ||
- run: ls -R | ||
- name: Extract pull request number | ||
id: pr-number | ||
run: | | ||
PR_NUMBER=$(cat ./$BUILD_DIR/__metadata__pull_number.txt) | ||
echo "value=$PR_NUMBER" >> $GITHUB_OUTPUT | ||
- name: Extract commit hash | ||
id: commit-hash | ||
run: | | ||
COMMIT_HASH=$(cat ./$BUILD_DIR/__metadata__commit_hash.txt) | ||
echo "value=$COMMIT_HASH" >> $GITHUB_OUTPUT | ||
- run: echo ${{ steps.pr-number.outputs.value }} ${{ steps.commit-hash.outputs.value }} | ||
echo 'value=$PR_NUMBER' >> $GITHUB_OUTPUT | ||
- name: Deploy to Firebase Hosting Preview | ||
id: firebase-deploy | ||
uses: FirebaseExtended/[email protected] | ||
|
@@ -74,5 +67,5 @@ jobs: | |
comment-id: ${{ steps.find-comment.outputs.comment-id }} | ||
edit-mode: replace | ||
body: | | ||
Preview deployed: ${{ steps.firebase-deploy.outputs.details_url }} (commit: ${{ steps.commit-hash.outputs.value }}) | ||
Preview deployed: ${{ steps.firebase-deploy.outputs.details_url }} (commit: ${{ github.event.workflow_run.head_sha }}) | ||