forked from reposense/RepoSense
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 924 Bytes
/
pending.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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@v4
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