fixing latest release detection

This commit is contained in:
buanet
2022-01-25 17:00:18 +01:00
parent 5401fdf86c
commit 15e87e08a0
2 changed files with 7 additions and 4 deletions

View File

@@ -11,8 +11,11 @@ jobs:
build-latest-image:
runs-on: ubuntu-latest
steps:
- name: Getting published release tag
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Fetching latest release tag
run: |
LATESTRELEASE="$(curl -sL https://api.github.com/repos/buanet/ioBroker.docker/releases/latest | jq -r '.tag_name')"
echo "Latest release tag : $LATESTRELEASE"
echo "RELEASE_TAG=$LATESTRELEASE" >> $GITHUB_ENV
- name: Checkout repo
uses: actions/checkout@v2.4.0
@@ -20,7 +23,7 @@ jobs:
repository: 'buanet/ioBroker.docker'
ref: ${{ env.RELEASE_TAG }}
- name: Get and write version and date
- name: Fetching and adding version tag and date
id: version
run: |
VERSION="$(cat .VERSION)"

View File

@@ -23,7 +23,7 @@ jobs:
repository: 'buanet/ioBroker.docker'
ref: ${{ env.RELEASE_TAG }}
- name: Get and write version and date
- name: Fetching and adding version tag and date
id: version
run: |
VERSION="$(cat .VERSION)"