Skip to content

Commit

Permalink
chore(GHA): address set-output deprecation (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeurherve authored Mar 2, 2024
1 parent bd5e114 commit 27b9dfa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/latest-weekly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ jobs:
- name: Calculate Diff
id: diff
run: |
git diff
if [[ $(git diff --stat) != '' ]]; then
echo "::set-output name=changed::true"
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "::set-output name=changed::false"
echo "changed=false" >> $GITHUB_OUTPUT
fi
- name: Update plugins
run: ./bin/update-plugins.sh
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/plugins-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
app_id: ${{ secrets.JENKINS_ADMIN_APP_ID }}
private_key: ${{ secrets.JENKINS_ADMIN_APP_PRIVKEY }}

- run: echo "::set-output name=stdout::$(./bin/update-plugins.sh plugins-infra.ci.jenkins.io.txt)\n"
id: update-infra-ci-plugins
- id: update-infra-ci-plugins
name: Update infra-ci plugins
run: echo "stdout=$(./bin/update-plugins.sh plugins-infra.ci.jenkins.io.txt)" >> $GITHUB_OUTPUT

- name: Create infra.ci.jenkins.io Pull Request
id: cpr-infra-ci
Expand All @@ -43,12 +43,12 @@ jobs:
body: |
Changes:
```diff
${{ steps.update-plugins.outputs.stdout }}
${{ steps.update-infra-ci-plugins.outputs.stdout }}
```
- run: echo "::set-output name=stdout::$(./bin/update-plugins.sh plugins-weekly.ci.jenkins.io.txt)\n"
id: update-weekly-ci-plugins
- id: update-weekly-ci-plugins
name: Update weekly-ci plugins
run: echo "stdout=$(./bin/update-plugins.sh plugins-weekly.ci.jenkins.io.txt)" >> $GITHUB_OUTPUT

- name: Create weekly.ci.jenkins.io Pull Request
id: cpr-weekly-ci
Expand All @@ -65,5 +65,5 @@ jobs:
body: |
Changes:
```diff
${{ steps.update-plugins.outputs.stdout }}
${{ steps.update-weekly-ci-plugins.outputs.stdout }}
```

0 comments on commit 27b9dfa

Please sign in to comment.