Skip to content

Commit

Permalink
Update 16-conditional.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeFalourd authored Sep 4, 2024
1 parent 1db89b1 commit 9dc5f27
Showing 1 changed file with 8 additions and 8 deletions.
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/[email protected].7
uses: actions/[email protected].8
with:
name: pass_status_job1

- name: Download artifact pass_status_job2
uses: actions/[email protected].7
uses: actions/[email protected].8
with:
name: pass_status_job2

- name: Download artifact pass_status_job3
uses: actions/[email protected].7
uses: actions/[email protected].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

0 comments on commit 9dc5f27

Please sign in to comment.