Skip to content

Commit

Permalink
Merge pull request #59 from GuillaumeFalourd/dependabot/github_action…
Browse files Browse the repository at this point in the history
…s/dot-github/workflows/actions/download-artifact-4.1.7

Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows
  • Loading branch information
GuillaumeFalourd authored Sep 4, 2024
2 parents f10652b + 778f9f8 commit 6a8a818
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/09-artifacts-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: |
expr 3 + 7 > math-homework.txt
- name: Upload math result for job 1
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.4.0
with:
name: homework
path: math-homework.txt
Expand All @@ -26,15 +26,15 @@ jobs:
runs-on: windows-latest
steps:
- name: Download math result for job 1
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4.1.8
with:
name: homework
- shell: bash
run: |
value=`cat math-homework.txt`
expr $value \* 9 > math-homework.txt
- name: Upload math result for job 2
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.4.0
with:
name: homework
path: math-homework.txt
Expand All @@ -45,7 +45,7 @@ jobs:
runs-on: macOS-latest
steps:
- name: Download math result for job 2
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4.1.8
with:
name: homework
- name: Print the final result
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/16-conditional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Upload file status_job1.txt as an artifact
if: always()
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4.4.0
with:
name: pass_status_job1
path: status_job1.txt
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
echo ${{ job.status }} > status_job2.txt
- name: Upload file status_job2.txt as an artifact
if: always()
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4.4.0
with:
name: pass_status_job2
path: status_job2.txt
Expand All @@ -73,7 +73,7 @@ jobs:
echo ${{ job.status }} > status_job3.txt
- name: Upload file status_job3.txt as an artifact
if: always()
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4.4.0
with:
name: pass_status_job3
path: status_job3.txt
Expand All @@ -84,17 +84,17 @@ jobs:
if: always()
steps:
- name: Download artifact pass_status_job1
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4.1.8
with:
name: pass_status_job1

- name: Download artifact pass_status_job2
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4.1.8
with:
name: pass_status_job2

- name: Download artifact pass_status_job3
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4.1.8
with:
name: pass_status_job3

Expand All @@ -121,7 +121,7 @@ jobs:
env:
MY_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }}
if: "${{ env.MY_KEY != '' }}"
run: echo "::set-output name=defined::true"
run: echo "defined=true" >> $GITHUB_OUTPUT

job5:
runs-on: ubuntu-latest
Expand All @@ -141,7 +141,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- id: step1
run: echo "::set-output name=test::hello"
run: echo "test=hello" >> $GITHUB_OUTPUT
- name: step 2
if: contains(steps.step1.outputs.test, 'hello')
run: echo 'is executed'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/25-artifacts-between-workflows-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download workflow artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.1.8
with:
github-token: ${{ secrets.ACCESS_TOKEN }}
name: pr_num
Expand All @@ -24,4 +24,4 @@ jobs:
with:
path: ./pr_num/pr_num.txt

- run: echo Original PR number is ${{ steps.pr_num_reader.outputs.content }}
- run: echo Original PR number is ${{ steps.pr_num_reader.outputs.content }}

0 comments on commit 6a8a818

Please sign in to comment.