mirror of
https://github.com/openstreetmap/id-tagging-schema.git
synced 2025-10-25 21:03:52 +02:00
allow PR previews to be manually re-run
This commit is contained in:
parent
2d53ca9b69
commit
f955b26875
2 changed files with 8 additions and 2 deletions
8
.github/workflows/build-preview.yml
vendored
8
.github/workflows/build-preview.yml
vendored
|
|
@ -4,6 +4,12 @@ on:
|
|||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
custom_pr_number:
|
||||
description: 'Pull Request number (excluding hashtag symbol)'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
@ -42,7 +48,7 @@ jobs:
|
|||
|
||||
- name: Store pull request number for later use
|
||||
run: |
|
||||
echo ${{github.event.number}} > ./pr_number
|
||||
echo ${{github.event.inputs.custom_pr_number || github.event.number}} > ./pr_number
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: pr
|
||||
|
|
|
|||
2
.github/workflows/deploy-preview.yml
vendored
2
.github/workflows/deploy-preview.yml
vendored
|
|
@ -10,7 +10,7 @@ jobs:
|
|||
deploy-preview:
|
||||
environment: pr-previews
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'}}
|
||||
if: ${{(github.event.workflow_run.event == 'pull_request' || github.event.workflow_run.event == 'workflow_dispatch') && github.event.workflow_run.conclusion == 'success'}}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue