diff --git a/.github/workflows/run_batch_script.yml b/.github/workflows/run_batch_script.yml index 3c6ac91..2794316 100644 --- a/.github/workflows/run_batch_script.yml +++ b/.github/workflows/run_batch_script.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Checkout spinalcordtoolbox - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: spinalcordtoolbox/spinalcordtoolbox path: spinalcordtoolbox @@ -41,7 +41,7 @@ jobs: cat ~/.bashrc | grep "export PATH" | grep -o "/.*" | cut -d ':' -f 1 >> $GITHUB_PATH - name: "Checkout '${{ github.event.repository.name }}'" - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: ${{ github.event.repository.name }} diff --git a/.github/workflows/run_script_and_create_release.yml b/.github/workflows/run_script_and_create_release.yml index 9d1d27d..027951d 100644 --- a/.github/workflows/run_script_and_create_release.yml +++ b/.github/workflows/run_script_and_create_release.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Checkout spinalcordtoolbox - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: spinalcordtoolbox/spinalcordtoolbox path: spinalcordtoolbox @@ -47,7 +47,7 @@ jobs: cat ~/.bashrc | grep "export PATH" | grep -o "/.*" | cut -d ':' -f 1 >> $GITHUB_PATH - name: "Checkout '${{ github.event.repository.name }}'" - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ env.GITHUB_SHA }} path: ${{ github.event.repository.name }} @@ -82,4 +82,4 @@ jobs: tag_name: ${{ github.event.inputs.release_title }} release_id: ${{ steps.create_release.outputs.id }} # Only attach to release if workflow is run manually. (This allows the workflow to double as a PR test.) - if: github.event_name == 'workflow_dispatch' \ No newline at end of file + if: github.event_name == 'workflow_dispatch'