|
From: Gleb C. <lna...@ya...> - 2023-04-05 08:44:26
|
Commit: e80c825 GitHub URL: https://github.com/SCST-project/scst/commit/e80c825e805b33ab4bc5141c51636d8a7d4c1194 Author: Gleb Chesnokov Date: 2023-04-05T11:42:48+03:00 Log Message: ----------- github: Fix deprecated set-output commands set-output is being deprecated: "Starting 1st June 2023 workflows using save-state or set-output commands via stdout will fail with an error." So fix this by using the GITHUB_OUTPUT environment files instead. Modified Paths: -------------- .github/workflows/coverity.yml | 2 +-%0A .github/workflows/mail_notification.yml | 22 +++++++--------%0A 2 files changed, 12 insertions(+), 12 deletions(-) =================================================================== diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml%0Aindex 083ef0f..ebdc75f 100644%0A--- a/.github/workflows/coverity.yml%0A+++ b/.github/workflows/coverity.yml%0A@@ -19,7 +19,7 @@ jobs:%0A revision="$(git rev-parse --short HEAD)"%0A version="$version_without_revesion-$revision"%0A %0A- echo ::set-output name=version::"$version"%0A+ echo "version=$version" >> $GITHUB_OUTPUT%0A %0A - name: Run Coverity Build%0A uses: vapier/coverity-scan-action@v1%0Adiff --git a/.github/workflows/mail_notification.yml b/.github/workflows/mail_notification.yml%0Aindex 36ff772..725478b 100644%0A--- a/.github/workflows/mail_notification.yml%0A+++ b/.github/workflows/mail_notification.yml%0A@@ -24,17 +24,17 @@ jobs:%0A - name: Get short ref%0A id: get_short_ref%0A run: |%0A- echo ::set-output name=short_ref::${GITHUB_REF#refs/*/}%0A+ echo "short_ref=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT%0A %0A - name: Get commit id%0A- id: get_comm_id%0A+ id: get_commit_id%0A run: |%0A- echo ::set-output name=comm_id::$(git rev-parse --short HEAD)%0A+ echo "commit_id=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT%0A %0A - name: Get commit message%0A- id: get_comm_message%0A+ id: get_commit_message%0A run: |%0A- echo ::set-output name=comm_message::$(git log --format=%25s -n 1 HEAD)%0A+ echo "commit_message=$(git log --format=%25s -n 1 HEAD)" >> $GITHUB_OUTPUT%0A %0A - name: Get list of files%0A id: get_list_files%0A@@ -45,10 +45,10 @@ jobs:%0A files="${files//$'\n'/'%250A'}"%0A files="${files//$'\r'/'%250D'}"%0A %0A- echo ::set-output name=files::"$files"%0A+ echo "files=$files" >> $GITHUB_OUTPUT%0A %0A - name: Get commit diff%0A- id: get_comm_diff%0A+ id: get_commit_diff%0A run: |%0A if [ $(git show --no-patch --format="%25P" | wc -w) -eq 1 ]; then%0A diff="$(git --no-pager diff -p HEAD^1)"%0A@@ -57,7 +57,7 @@ jobs:%0A diff="${diff//$'\n'/'%250A'}"%0A diff="${diff//$'\r'/'%250D'}"%0A %0A- echo ::set-output name=comm_diff::"$diff"%0A+ echo "commit_diff=$diff" >> $GITHUB_OUTPUT%0A fi%0A %0A - name: Send mail%0A@@ -73,7 +73,7 @@ jobs:%0A password: ${{secrets.MAIL_SERVER_PASSWORD}}%0A # Required mail subject:%0A subject: |%0A- [${{steps.get_short_ref.outputs.short_ref}}] ${{steps.get_comm_message.outputs.comm_message}}%0A+ [${{steps.get_short_ref.outputs.short_ref}}] ${{steps.get_commit_message.outputs.commit_message}}%0A # Required recipients' addresses:%0A to: scs...@li...%0A # Required sender full name (address can be skipped):%0A@@ -83,7 +83,7 @@ jobs:%0A %0A # Optional plain body:%0A body: |%0A- Commit: ${{steps.get_comm_id.outputs.comm_id}}%0A+ Commit: ${{steps.get_commit_id.outputs.commit_id}}%0A GitHub URL: ${{matrix.commit.url}}%0A Author: ${{matrix.commit.author.name}}%0A Date: ${{matrix.commit.timestamp}}%0A@@ -96,7 +96,7 @@ jobs:%0A ${{steps.get_list_files.outputs.files}}%0A %0A ===================================================================%0A- ${{steps.get_comm_diff.outputs.comm_diff}}%0A+ ${{steps.get_commit_diff.outputs.commit_diff}}%0A %0A # Optional unsigned/invalid certificates allowance:%0A ignore_cert: true |