mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-24 13:45:32 +02:00
fixing latest release detection
This commit is contained in:
@@ -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)"
|
||||
|
||||
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user