Skip to content

Commit

Permalink
feat(ci/cd): Add dispatch workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anngvu committed May 15, 2022
1 parent b10426c commit dddf90a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/dispatch-downstream-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Dispatch downstream dev

on:
release:
types: [published]

env:
REPO_RAW: https://raw.githubusercontent.com/gf-dcc/data-model
SRC_FILE: GF.jsonld

jobs:
dispatch-downstream-dev:
runs-on: ubuntu-latest
steps:
- name: Generate input payload
id: payload
run: |
sudo apt install jq
URL=$REPO_RAW/$GITHUB_REF_NAME/$SRC_FILE
INPUT=$(jq -n -c --arg url "$URL" '{ source: $url}')
echo "::set-output name=INPUT::$INPUT"
- uses: benc-uk/workflow-dispatch@v1
with:
workflow: Update source model for dev
repo: gf-dcc/data_curator
ref: refs/heads/gf-dev
token: ${{ secrets.REPO_PAT }}
inputs: ${{ steps.payload.outputs.INPUT }}

0 comments on commit dddf90a

Please sign in to comment.