diff --git a/.github/workflows/build-debian-image-latest-iob.yml b/.github/workflows/build-debian-image-latest-iob.yml index 2bd2c4c..2ef2d8b 100644 --- a/.github/workflows/build-debian-image-latest-iob.yml +++ b/.github/workflows/build-debian-image-latest-iob.yml @@ -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)" diff --git a/.github/workflows/build-debian-image-latest.yml b/.github/workflows/build-debian-image-latest.yml index 3d27828..dbd2135 100644 --- a/.github/workflows/build-debian-image-latest.yml +++ b/.github/workflows/build-debian-image-latest.yml @@ -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)"