Skip to content

Commit 1e1eed9

Browse files
committed
Replace deprecated set-output command in workflows
1 parent a3fc04b commit 1e1eed9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/code-transformations.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ jobs:
4444
COMMIT_FILES=$(git diff --diff-filter d --name-only $BASE_COMMIT)
4545
if [ -z "$COMMIT_FILES" ]; then
4646
echo "No files to check" >&2
47-
echo ::set-output name=clean::true
47+
echo clean=true >> "$GITHUB_OUTPUT"
4848
exit 0
4949
fi
5050
perl -p -i -e "${{ env.REFACTORING }}" $COMMIT_FILES
5151
5252
if git diff --exit-code; then
5353
echo "Refactoring not needed."
5454
git push --set-upstream https://alibuild:$ALIBUILD_GITHUB_TOKEN@github.com/alibuild/AliceO2.git :alibot-refactoring-${{ github.event.pull_request.number }} -f || true
55-
echo ::set-output name=clean::true
55+
echo clean=true >> "$GITHUB_OUTPUT"
5656
else
5757
git commit -m "${{ env.RATIONALE }}" -a
5858
git show | cat
5959
git fetch https://github.com/AliceO2Group/AliceO2.git pull/${{ github.event.pull_request.number }}/head
6060
git push --set-upstream https://alibuild:$ALIBUILD_GITHUB_TOKEN@github.com/alibuild/AliceO2.git HEAD:refs/heads/alibot-refactoring-${{ github.event.pull_request.number }} -f
61-
echo ::set-output name=clean::false
61+
echo clean=false >> "$GITHUB_OUTPUT"
6262
fi
6363
6464
- name: pull-request

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
steps:
1515
- name: Decide which branch to use
1616
run: |
17-
cat << EOF
18-
::set-output name=branch::$(echo ${{ github.event.inputs.tag }}-patches | tr . - | sed -e's/-[0-9]*-patches$/-patches/')
17+
cat << EOF >> "$GITHUB_OUTPUT"
18+
branch=$(echo ${{ github.event.inputs.tag }}-patches | tr . - | sed -e's/-[0-9]*-patches$/-patches/')
1919
EOF
2020
id: decide_release_branch
2121
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)