Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Fix deprecaated usage of get-env
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewinci committed Nov 17, 2020
1 parent 76759d1 commit b1a44c9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-gradle-
- uses: olegtarasov/get-tag@v2
id: tagName
- uses: battila7/get-version-action@v2
id: get_version
- name: Gradle package
run: "./gradlew bootstrap:packageApp"
env:
RELEASE_VERSION: ${{ steps.tagName.outputs.tag }}
RELEASE_VERSION: ${{ steps.get_version.outputs.version }}
- name: Update binary
uses: actions/upload-artifact@v2
with:
Expand All @@ -55,7 +55,7 @@ jobs:
python3 scripts/build.py
mv ./app/build/distributions/app/lib/insulator.jar .
env:
RELEASE_VERSION: ${{ steps.tagName.outputs.tag }}
RELEASE_VERSION: ${{ steps.get_version.outputs.version }}
- name: Update update4j config + jar
if: ${{ matrix.os.name == 'ubuntu-latest' }}
uses: actions/upload-artifact@v2
Expand All @@ -72,16 +72,16 @@ jobs:
outputs:
release-url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: olegtarasov/get-tag@v2
id: tagName
- uses: battila7/get-version-action@v2
id: get_version
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tagName.outputs.tag }}
release_name: Release Candidate ${{ steps.tagName.outputs.tag }}
tag_name: ${{ steps.get_version.outputs.version }}
release_name: Release Candidate ${{ steps.get_version.outputs.version }}
draft: false
prerelease: true

Expand All @@ -98,8 +98,8 @@ jobs:
- name: insulator-debian
path: insulator*.deb
steps:
- uses: olegtarasov/get-tag@v2
id: tagName
- uses: battila7/get-version-action@v2
id: get_version
- name: Download binary from previous jobs
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -156,4 +156,4 @@ jobs:
cd /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/andrea-vinci/homebrew-insulator
git push https://${{ secrets.GITHUBTOKEN }}@github.com/andrea-vinci/homebrew-insulator.git
env:
RELEASE_VERSION: ${{ steps.tagName.outputs.tag }}
RELEASE_VERSION: ${{ steps.get_version.outputs.version }}

0 comments on commit b1a44c9

Please sign in to comment.