This commit is contained in:
fkwp
2024-04-12 19:41:56 +00:00
parent 3d7ef061cd
commit a1659c1fe2

View File

@@ -25,7 +25,7 @@ jobs:
- run: ${{ tojson(github.event) }}
shell: cat {0}
- run: ${{ tojson(steps.prdetails.outputs.data) }}
- run: ${{ steps.prdetails.outputs.data }}
shell: cat {0}
- name: 📝 Create Deployment
@@ -35,7 +35,7 @@ jobs:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
env: Netlify
ref: ${{ steps.prdetails.outputs.data.head.sha || github.ref || github.head_ref }}
ref: ${{ fromJSON(steps.prdetails.outputs.data).head.sha || github.ref || github.head_ref }}
desc: |
Do you trust the author of this PR? Maybe this build will steal your keys or give you malware.
Exercise caution. Use test accounts.
@@ -53,7 +53,9 @@ jobs:
run: curl -s https://raw.githubusercontent.com/element-hq/element-call/main/config/netlify_redirects > webapp/_redirects
- name: Add config file
run: curl -s "https://raw.githubusercontent.com/${{ env.PR_HEAD_FULL_NAME }}/${{ steps.prdetails.outputs.data.head.ref }}/config/element_io_preview.json" > webapp/config.json
run: curl -s "https://raw.githubusercontent.com/${{ env.PR_HEAD_FULL_NAME }}/${{ env.PR_HEAD_REF }}/config/element_io_preview.json" > webapp/config.json
env:
PR_HEAD_REF: ${{ fromJSON(steps.prdetails.outputs.data).head.ref }}
- name: ☁️ Deploy to Netlify
id: netlify