From 3fe284a5a6eb3bb5f90c0c46cf85b9e7ad2136be Mon Sep 17 00:00:00 2001 From: Espen Waaga <36693523+espenwaaga@users.noreply.github.com> Date: Wed, 4 Nov 2020 09:09:57 +0100 Subject: [PATCH] GA: Fjerner depracated set-env syntax. (#49) --- .github/workflows/build-pr.yml | 4 ++-- .github/workflows/build.yml | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 66f87b0..b7c4788 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -1,6 +1,6 @@ name: Bygg pull request -on: +on: pull_request: paths-ignore: - '**.md' @@ -24,7 +24,7 @@ jobs: with: java-version: 1.11 - name: Hent tag - run: echo "::set-env name=TAG::$(git log -1 --pretty='%ad' --date=format:'%Y%m%d%H%M%S')-$(echo $GITHUB_SHA | cut -c1-7)" + run: echo "TAG=$(git log -1 --pretty='%ad' --date=format:'%Y%m%d%H%M%S')-$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV - name: Build shell: bash run: | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 75103a5..1354875 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,13 +26,13 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 1.11 - - name: Hent tag - run: echo "::set-env name=TAG::$(git log -1 --pretty='%ad' --date=format:'%Y%m%d%H%M%S')-$(echo $GITHUB_SHA | cut -c1-7)" - - - name: Hent maven version + - name: Hent tag + run: echo "TAG=$(git log -1 --pretty='%ad' --date=format:'%Y%m%d%H%M%S')-$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV + + - name: Hent maven version run: | - echo "::set-env name=MVN_VERSION::${VERSION}-${TAG}" - + echo "MVN_VERSION=${VERSION}-${TAG}" >> $GITHUB_ENV + - name: Build artifacts & deploy shell: bash run: | @@ -42,16 +42,16 @@ jobs: GITHUB_USERNAME: x-access-token GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Create Release id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ env.MVN_VERSION }} release_name: Release ${{ env.MVN_VERSION }} draft: false - prerelease: false - + prerelease: false +