Skip to content

Commit

Permalink
Remove usage of ::set-output in GitHub Actions (async-aws#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof authored May 31, 2023
1 parent 5f72f6b commit bf6c9d2
Show file tree
Hide file tree
Showing 53 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bin/refresh
Original file line number Diff line number Diff line change
Expand Up @@ -232,4 +232,4 @@ foreach ($services as $service => $hasChange) {
}

// forward version to .github action
echo PHP_EOL, '::set-output name=last::'.$lastVersion, PHP_EOL;
file_put_contents($_SERVER['GITHUB_OUTPUT'], 'last='.$lastVersion.\PHP_EOL, FILE_APPEND);
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer
uses: actions/cache@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer
uses: actions/cache@v3
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer
uses: actions/cache@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer
uses: actions/cache@v3
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/watch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion src/Core/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/.template/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/AppSync/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Athena/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/CloudFront/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/CloudWatch/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/CodeBuild/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/CodeCommit/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/CodeDeploy/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Comprehend/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/DynamoDb/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Ecr/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/ElastiCache/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/EventBridge/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Firehose/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Iam/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Iot/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/IotData/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Kinesis/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Kms/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Lambda/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Rekognition/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Route53/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/Service/S3/.github/workflows/branch_alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Last tag was $TAG"
ARR=(${TAG//./ })
ARR[1]=$((${ARR[1]}+1))
echo ::set-output name=alias::${ARR[0]}.${ARR[1]}
echo "alias=${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT
- name: Checkout main repo
run: |
Expand Down
Loading

0 comments on commit bf6c9d2

Please sign in to comment.