From 491526a906c5b6931672e6c4e13c4adfdf8476ec Mon Sep 17 00:00:00 2001 From: Jacek Kowalski Date: Sun, 11 Aug 2024 23:37:58 +0200 Subject: [PATCH] Workflows: replace deprecated ::set-output pseudo-commands https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/docker-tag.yml | 2 +- .github/workflows/docker.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-tag.yml b/.github/workflows/docker-tag.yml index cc9b6d6..e28a84e 100644 --- a/.github/workflows/docker-tag.yml +++ b/.github/workflows/docker-tag.yml @@ -15,7 +15,7 @@ jobs: - name: Get short SHA from commit hash id: tagcalc - run: echo "::set-output name=tagname::$(git describe --tags --abbrev=0 HEAD)" + run: echo "tagname=$(git describe --tags --abbrev=0 HEAD)" >> $GITHUB_OUTPUT - name: Login to Docker Hub uses: docker/login-action@v3 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 088430b..263a360 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Get short SHA from commit hash id: shacalc - run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" + run: echo "sha8=${GITHUB_SHA:0:8}" >> $GITHUB_OUTPUT - name: Check Out Repo uses: actions/checkout@v4