File tree 2 files changed +2
-12
lines changed
2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 49
49
- name : Inject pull request number
50
50
run : echo "${{ github.event.pull_request.number }}" >> __metadata__pull_number.txt
51
51
working-directory : build/dist/bin/adev/build/browser
52
- - name : Inject commit hash
53
- run : echo "${{ github.event.pull_request.head.sha }}" >> __metadata__commit_hash.txt
54
- working-directory : build/dist/bin/adev/build/browser
55
52
- uses : actions/upload-artifact@v4
56
53
with :
57
54
name : adev-preview
Original file line number Diff line number Diff line change @@ -36,18 +36,11 @@ jobs:
36
36
path : ${{ env.BUILD_DIR }}
37
37
github-token : ' ${{secrets.GITHUB_TOKEN}}'
38
38
run-id : ${{ github.event.workflow_run.id }}
39
- - run : ls -R
40
39
- name : Extract pull request number
41
40
id : pr-number
42
41
run : |
43
42
PR_NUMBER=$(cat ./$BUILD_DIR/__metadata__pull_number.txt)
44
- echo "value=$PR_NUMBER" >> $GITHUB_OUTPUT
45
- - name : Extract commit hash
46
- id : commit-hash
47
- run : |
48
- COMMIT_HASH=$(cat ./$BUILD_DIR/__metadata__commit_hash.txt)
49
- echo "value=$COMMIT_HASH" >> $GITHUB_OUTPUT
50
- - run : echo ${{ steps.pr-number.outputs.value }} ${{ steps.commit-hash.outputs.value }}
43
+ echo 'value=$PR_NUMBER' >> $GITHUB_OUTPUT
51
44
- name : Deploy to Firebase Hosting Preview
52
45
id : firebase-deploy
53
46
uses :
FirebaseExtended/[email protected]
74
67
comment-id : ${{ steps.find-comment.outputs.comment-id }}
75
68
edit-mode : replace
76
69
body : |
77
- Preview deployed: ${{ steps.firebase-deploy.outputs.details_url }} (commit: ${{ steps.commit-hash.outputs.value }})
70
+ Preview deployed: ${{ steps.firebase-deploy.outputs.details_url }} (commit: ${{ github.event.workflow_run.head_sha }})
78
71
You can’t perform that action at this time.
0 commit comments