1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-01 08:18:14 +09:00

Update pr-preview-deploy.yml

This commit is contained in:
syuilo 2022-06-09 01:43:35 +09:00
parent 2d6de2299c
commit d8eb610aab

View File

@ -1,12 +1,12 @@
# Run secret-dependent integration tests only after /ok-to-test approval # Run secret-dependent integration tests only after /deploy approval
on: on:
repository_dispatch: repository_dispatch:
types: [ok-to-test-command] types: [deploy-command]
name: Deploy preview environment name: Deploy preview environment
jobs: jobs:
# Repo owner has commented /ok-to-test on a (fork-based) pull request # Repo owner has commented /deploy on a (fork-based) pull request
deploy-preview-environment: deploy-preview-environment:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: if:
@ -16,7 +16,7 @@ jobs:
steps: steps:
# Check out merge commit # Check out merge commit
- name: Fork based /ok-to-test checkout - name: Fork based /deploy checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
ref: 'refs/pull/${{ github.event.client_payload.pull_request.number }}/merge' ref: 'refs/pull/${{ github.event.client_payload.pull_request.number }}/merge'