Skip to content

Commit 8ee5a22

Browse files
committed
chore: update example action with commit comment
1 parent db5f3b0 commit 8ee5a22

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

example/.github/workflows/fileset-upload.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,21 @@ jobs:
3737
npm install
3838
npm run build
3939
- name: Upload
40+
id: upload
4041
run: |-
41-
npx @blinkk/fileset upload -s ${{ env.SITE }} -b ${GITHUB_REF#refs/heads/} build
42+
npx @blinkk/fileset upload \
43+
-s ${{ env.SITE }} \
44+
-b ${GITHUB_REF#refs/heads/} \
45+
-o upload.json \
46+
build
47+
echo "::set-output name=build-link::$(jq -r .urls.stagingSha upload.json)"
48+
echo "::set-output name=dashboard-link::$(jq -r .urls.ui upload.json)"
49+
echo "::set-output name=staging-link::$(jq -r .urls.stagingBranch upload.json)"
50+
- name: Comment
51+
uses: peter-evans/commit-comment@v1
52+
with:
53+
body: |
54+
**Staging Link:**
55+
${{ steps.upload.outputs.staging-link }}
56+
- [Dashboard](${{ steps.upload.outputs.dashboard-link }})
57+
- [Build](${{ steps.upload.outputs.build-link }})

0 commit comments

Comments
 (0)