Skip to content

Commit 350f8b4

Browse files
committed
try: pr status
1 parent e66473e commit 350f8b4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/hugo.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77

88
# Run on PRs, but only build
99
pull_request:
10+
types:
11+
- opened
12+
- reopened
13+
- synchronize
14+
- closed
1015
# Allows to run this workflow manually from the Actions tab
1116
workflow_dispatch:
1217

@@ -31,12 +36,14 @@ env:
3136
uberspace_host: uberspace1.openrailassociation.org
3237
uberspace_user: openrail
3338
uberspace_virtual_base: /var/www/virtual
39+
closed_merged: ${{ github.event.pull_request.closed_at || github.event.pull_request.merged }}
3440

3541
jobs:
3642
# Build job
3743
build:
3844
runs-on: ubuntu-22.04
3945
steps:
46+
- run: echo "${{ env.closed_merged }}"
4047
- uses: actions/checkout@v4
4148
with:
4249
submodules: recursive # Get submdules
@@ -142,4 +149,4 @@ jobs:
142149
message: |
143150
Pull Request Live Preview
144151
:---:
145-
| <p><br />:rocket: View preview at <br />https://${{ env.preview_subdomain }}.${{ env.domain }}/${{ env.preview_segment }}/<br /></p>
152+
| <p><br />:rocket: View preview at <br />https://${{ env.preview_subdomain }}.${{ env.domain }}/${{ env.preview_segment }}/<br /><br /></p>

0 commit comments

Comments
 (0)