generated from nipype/pydra-tasks-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -351,6 +351,12 @@ jobs: | |
needs: [devcheck, test, deploy-fileformats, deploy-fileformats-extras] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Git user | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
- name: Download version file | ||
uses: actions/download-artifact@v2 | ||
with: | ||
|
@@ -372,6 +378,25 @@ jobs: | |
run: | | ||
sed -i '/\/pydra\/tasks\/mrtrix3\/${{ env.SUBPKG_NAME }}/d' .gitignore | ||
- name: Add auto-generated directory to git repo | ||
if: github.event_name == 'release' || github.event_name == 'repository_dispatch' | ||
run: | | ||
git add pydra/tasks/mrtrix3/$SUBPKG_NAME | ||
git commit -am"added auto-generated version to make new tag for package version" | ||
git status | ||
- name: Get latest version tag | ||
id: latest_tag | ||
run: | | ||
git fetch --tags | ||
echo "TAG=$(git tag -l | grep 'v.*' | tail -n 1 | awk -F post '{print $1}')" >> $GITHUB_OUTPUT | ||
- name: Overwrite the tag of release event with latest commit (i.e. including the auto directory) | ||
if: github.event_name == 'release' | ||
run: | | ||
git tag -d ${{ steps.latest_tag.outputs.TAG }}; | ||
git tag -a ${{ steps.latest_tag.outputs.TAG }} -m"Tag used to create a pydra-mrtrix3 $MRTRIX_VERSION release"; | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v2 | ||
with: | ||
|