diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 65dd657..ade3a29 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -55,11 +55,13 @@ jobs: - name: Extract variables shell: bash run: | - echo "::set-output name=BRANCH::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')" - echo "::set-output name=TAG::$(git tag --points-at HEAD)" - echo "::set-output name=GIT_SHA::$(git rev-parse HEAD)" - echo "::set-output name=GIT_SHA_SHORT::$(git rev-parse --short HEAD)" - echo "::set-output name=MESSAGE::$(git log --format=%B -n 1 ${{ github.event.after }})" + echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')" >> $GITHUB_OUTPUT + echo "TAG=$(git tag --points-at HEAD)" >> $GITHUB_OUTPUT + echo "GIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT + echo "GIT_SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + echo "MESSAGE<> $GITHUB_OUTPUT + git log --format=%B -n 1 ${{ github.event.after }} >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT id: extract_variables - name: Checkout terraform config repo diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9df990e..5353323 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: password: ${{ secrets.DOCKERHUB_RORAPI_TOKEN }} - name: Get git tag run: | - echo "::set-output name=GIT_TAG::$(git tag --points-at HEAD)" + echo "GIT_TAG=$(git tag --points-at HEAD)" >> $GITHUB_OUTPUT id: set_git_vars - name: Build and push uses: docker/build-push-action@v2 @@ -52,10 +52,10 @@ jobs: - name: Extract variables shell: bash run: | - echo "::set-output name=BRANCH::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')" - echo "::set-output name=TAG::$(git tag --points-at HEAD)" - echo "::set-output name=GIT_SHA::$(git rev-parse HEAD)" - echo "::set-output name=GIT_SHA_SHORT::$(git rev-parse --short HEAD)" + echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')" >> $GITHUB_OUTPUT + echo "TAG=$(git tag --points-at HEAD)" >> $GITHUB_OUTPUT + echo "GIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT + echo "GIT_SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT id: extract_variables - name: Checkout terraform config repo diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index b764937..703c738 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -51,11 +51,13 @@ jobs: - name: Extract variables shell: bash run: | - echo "::set-output name=BRANCH::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')" - echo "::set-output name=TAG::$(git tag --points-at HEAD)" - echo "::set-output name=GIT_SHA::$(git rev-parse HEAD)" - echo "::set-output name=GIT_SHA_SHORT::$(git rev-parse --short HEAD)" - echo "::set-output name=MESSAGE::$(git log --format=%B -n 1 ${{ github.event.after }})" + echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')" >> $GITHUB_OUTPUT + echo "TAG=$(git tag --points-at HEAD)" >> $GITHUB_OUTPUT + echo "GIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT + echo "GIT_SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + echo "MESSAGE<> $GITHUB_OUTPUT + git log --format=%B -n 1 ${{ github.event.after }} >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT id: extract_variables - name: Checkout terraform config repo