cleanup
This commit is contained in:
8
.github/workflows/netlify-pr.yaml
vendored
8
.github/workflows/netlify-pr.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user