Skip to content

Commit

Permalink
Display message_data GHA run URL
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Aug 2, 2024
1 parent 946f07e commit 0b335c8
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/transport.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: MESSAGEix-Transport

env:
target: --repo=iiasa/message_data --workflow=transport.yaml

# Starting point of the workflow.
# Use this value to build from a certain scenario:
# base: --url="ixmp://ixmp-dev/MESSAGEix-GLOBIOM 1.1-R12/baseline_DEFAULT#21"
Expand All @@ -11,6 +13,8 @@ env:
# Set this to a particular step to truncate the workflow
from-step: ""



on:
# Uncomment these lines for debugging, but leave them commented on 'main'
pull_request:
Expand All @@ -31,13 +35,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Invoke transport workflow in message_data
- name: Invoke "transport.yaml" workflow in message_data
env:
GH_TOKEN: ${{ secrets.MESSAGE_DATA_DISPATCH_TOKEN }}
GH_REPO: iiasa/message_data
run: |
gh workflow run transport.yaml \
--ref fix/transport-workflow \
gh workflow run \
${{ env.target }} --ref fix/transport-workflow \
--field ref=${{ github.ref }} \
--field sha=${{ github.sha }} \
--field base=${{ env.base }} \
--field from-step=${{ env.from-step }}
sleep 1
gh run list
${{ env.target }} \
--json url,status \
--jq 'map(select(.status != "completed"))' >> $GITHUB_STEP_SUMMARY

0 comments on commit 0b335c8

Please sign in to comment.