Skip to content

Commit

Permalink
fixed up report progress
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Mar 24, 2024
1 parent d8d8556 commit 5eecf2e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Run automatic Nipype > Pydra conversion
run: ./nipype-auto-conv/generate

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: converted-nipype
path: pydra/tasks/fsl/auto
Expand All @@ -71,7 +71,7 @@ jobs:
run: git checkout $(git tag -l | grep 'v.*' | tail -n 1 | awk -F post '{print $1}')

- name: Download tasks converted from Nipype
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: converted-nipype
path: pydra/tasks/fsl/auto
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
fsl-znzlib fsl_mrs fsl_sub fsl_sub_plugin_sge fsl_sub_plugin_slurm
- name: Download tasks converted from Nipype
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: converted-nipype
path: pydra/tasks/fsl/auto
Expand Down Expand Up @@ -303,7 +303,7 @@ jobs:
run: git checkout ${{ steps.latest_tag.outputs.TAG }}

- name: Download tasks converted from Nipype
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: converted-nipype
path: pydra/tasks/fsl/auto
Expand Down Expand Up @@ -357,7 +357,7 @@ jobs:
- name: Check distributions
run: twine check dist/*

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: distributions
path: dist/
Expand Down Expand Up @@ -393,6 +393,9 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Generate progress report
id: generate-report
run: |
Expand All @@ -402,14 +405,14 @@ jobs:
- name: Report progress to Nipype2Pydra repo
if: github.event_name == 'release' || github.event_name == 'repository_dispatch'
run: >-
curl -XPOST -u "${{ env.POST_RELEASE_PAT }}" -H "Accept: application/vnd.github.everest-preview+json"
curl -XPOST -u "${{ env.REPORT_PROGRESS_PAT }}" -H "Accept: application/vnd.github.everest-preview+json"
"https://api.github.com/repos/nipype/pydra-fsl/dispatches"
-d '{
"event_type": "progress-report",
"client_payload": ${{ steps.generate-report.output.progress_report }}
}'
env:
PAT: ${{ env.PROGRESS_REPORT_PAT }}
PAT: ${{ env.REPORT_PROGRESS_PAT }}


# Deploy on tags if PYPI_API_TOKEN is defined in the repository secrets.
Expand Down

0 comments on commit 5eecf2e

Please sign in to comment.