Skip to content

Commit

Permalink
GA: Fjerner depracated set-env syntax. (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
espenwaaga authored Nov 4, 2020
1 parent c97456d commit 3fe284a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Bygg pull request

on:
on:
pull_request:
paths-ignore:
- '**.md'
Expand All @@ -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: |
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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

0 comments on commit 3fe284a

Please sign in to comment.