[#2141] Use optionals for return values that may be null to enforce a client check #3157
Workflow file for this run
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 workflow marks a deployment to surge.sh as pending | |
name: Surge.sh pending build | |
on: | |
pull_request_target: | |
branches-ignore: | |
- gh-pages | |
jobs: | |
deploy: | |
name: Deployment status | |
runs-on: ubuntu-latest | |
env: | |
ACTIONS_PULL_REQUEST_HEAD: ${{ github.event.pull_request.head.sha }} | |
ACTIONS_PULL_REQUEST_NUMBER: ${{ github.event.number }} | |
GITHUB_TOKEN: ${{ github.token }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Update PR checklist for surge.sh as pending | |
run: | | |
mkdir -p ./pr | |
./config/gh-actions/deploy.sh pending | |
- name: Upload artifacts | |
if: ${{ success() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: reposense-deployment-id | |
path: ./pr | |
- name: Update PR checklist for surge.sh as failure | |
if: ${{ failure() }} | |
run: ./config/gh-actions/deploy.sh failure |