Skip to content

Commit

Permalink
Split into 3 jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjtaylor committed Jul 1, 2023
1 parent f395a2d commit eeed54d
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/ci-update-mtdca.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: Update CSV on Release
name: Update DCA config on release

on:
pull_request:
workflow_dispatch:
release:
types: [prereleased]

jobs:


make-config:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -46,7 +43,6 @@ jobs:

update-csv:
runs-on: ubuntu-latest
needs: make-config

steps:
- name: Checkout repository
Expand Down Expand Up @@ -81,6 +77,21 @@ jobs:
sed -i "s|https://raw.githubusercontent.com/ncihtan/data-models/[^/]\+/HTAN.model.jsonld|https://raw.githubusercontent.com/ncihtan/data-models/${{ github.sha }}/HTAN.model.jsonld|" dcc_config.csv
fi
open-pr:
runs-on: ubuntu-latest
needs:
- make-config
- update-csv

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Fetch config.json artifact
uses: actions/download-artifact@master
with:
name: config

- name: Commit and push changes to target repository
run: |
# Set up the GitHub token for authentication
Expand Down

0 comments on commit eeed54d

Please sign in to comment.