Skip to content

Commit 827c664

Browse files
seismanweiji14
authored andcommitted
Let slash command /test-gmt-dev report job URL (GenericMappingTools#1866)
Co-authored-by: Wei Ji <[email protected]>
1 parent 599374d commit 827c664

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/ci_tests_dev.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ jobs:
7171
# fecth all history so that setuptools-scm works
7272
fetch-depth: 0
7373

74+
- name: Show job URL
75+
uses: peter-evans/[email protected]
76+
if: github.event_name == 'repository_dispatch' && (matrix.os == 'ubuntu-latest')
77+
with:
78+
token: ${{ steps.generate-token.outputs.token }}
79+
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
80+
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
81+
7482
# Install Mambaforge with conda-forge dependencies
7583
- name: Setup Mambaforge
7684
uses: conda-incubator/[email protected]
@@ -160,12 +168,3 @@ jobs:
160168
with:
161169
name: artifact-GMT-${{ matrix.gmt_git_ref }}-${{ runner.os }}
162170
path: tmp-test-dir-with-unique-name
163-
164-
- name: Add reaction
165-
uses: peter-evans/create-or-update-comment@v2
166-
if: github.event_name == 'repository_dispatch'
167-
with:
168-
token: ${{ steps.generate-token.outputs.token }}
169-
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
170-
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
171-
reaction-type: hooray

0 commit comments

Comments
 (0)