Skip to content

Commit

Permalink
Fix config paths
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjtaylor committed Jul 1, 2023
1 parent 0b8dfcf commit f395a2d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci-update-mtdca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.9'
Expand Down Expand Up @@ -79,23 +80,30 @@ jobs:
echo "Using github.sha: ${{ github.sha }}"
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
- name: Commit and push changes to target repository
run: |
# Set up the GitHub token for authentication
git config --global credential.helper store
git config --global user.email "adam.taylor@sagebase.org"
git config --global user.name "Adam Taylor"
# Replace `<target_owner>` with the username or organization name of the target repository owner
# Replace `<target_repo>` with the name of the target repository
# Replace `update-csv` with the name of the branch you want to push the changes to
# Clone the config repo and make a branch
git clone https://github.com/adamjtaylor/data_curator_config.git
cd data_curator_config
git checkout -b update-csv-${{ github.run_id }}-${{ github.run_attempt }}
# Add the dcc_config.csv
cp ../dcc_config.csv dcc_config.csv
git add dcc_config.csv
git commit -m "Update CSV with release tag"
git add config.json
# Add the dca-template-config.json
mv ../config.json HTAN/dca-template-config.json
git add HTAN/dca-template-config.json
git commit -m "Update config.json"
# Push to the repository
git remote set-url origin "https://${{ secrets.DCA_CONFIG_PAT }}@github.com/adamjtaylor/data_curator_config.git"
git push --set-upstream origin update-csv-${{ github.run_id }}-${{ github.run_attempt }}
Expand Down

0 comments on commit f395a2d

Please sign in to comment.