Fix release tag (#2511)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
2
.github/workflows/release_docker.yaml
vendored
2
.github/workflows/release_docker.yaml
vendored
@@ -1,7 +1,7 @@
|
|||||||
# This workflow builds and releases Docker images for Hawkbit applications to DockerHub.
|
# This workflow builds and releases Docker images for Hawkbit applications to DockerHub.
|
||||||
# It should be run from personal forks of the hawkbit repository with set .
|
# It should be run from personal forks of the hawkbit repository with set .
|
||||||
# personal DOCKERHUB_USERNAME var and DOCKERHUB_TOKEN secret.
|
# personal DOCKERHUB_USERNAME var and DOCKERHUB_TOKEN secret.
|
||||||
name: Release Docker Images
|
name: Release - Docker Images
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# enable running the workflow manually
|
# enable running the workflow manually
|
||||||
|
|||||||
13
.github/workflows/release_tag.yaml
vendored
13
.github/workflows/release_tag.yaml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Release Tag
|
name: Release - Tag
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# enable running the workflow manually
|
# enable running the workflow manually
|
||||||
@@ -17,17 +17,6 @@ permissions:
|
|||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
audit:
|
|
||||||
# only on original eclipse-hawkbit/hawkbit repo
|
|
||||||
if: github.repository == 'eclipse-hawkbit/hawkbit'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: "Release ${{ inputs.revision }}"
|
|
||||||
run: echo "Releasing ${{ inputs.revision }}"
|
|
||||||
|
|
||||||
# tag with release version if not already tagged
|
|
||||||
# if already tagged - it will release from there
|
|
||||||
tag:
|
tag:
|
||||||
# only on original eclipse-hawkbit/hawkbit repo and when release fixed version
|
# only on original eclipse-hawkbit/hawkbit repo and when release fixed version
|
||||||
if: github.repository == 'eclipse-hawkbit/hawkbit' && inputs.revision != '0-SNAPSHOT'
|
if: github.repository == 'eclipse-hawkbit/hawkbit' && inputs.revision != '0-SNAPSHOT'
|
||||||
|
|||||||
4
.github/workflows/reusable_workflow_tag.yaml
vendored
4
.github/workflows/reusable_workflow_tag.yaml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Tag release
|
- name: Create Tag ${{ inputs.tag_name }}
|
||||||
run: |
|
run: |
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
@@ -54,7 +54,7 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "Tag ${TAG_NAME} already exists, do nothing."
|
echo "Tag ${TAG_NAME} already exists, do nothing."
|
||||||
fi
|
fi
|
||||||
fi`
|
fi
|
||||||
env:
|
env:
|
||||||
TAG_NAME: ${{ inputs.tag_name }}
|
TAG_NAME: ${{ inputs.tag_name }}
|
||||||
TAG_MESSAGE: ${{ inputs.tag_message }}
|
TAG_MESSAGE: ${{ inputs.tag_message }}
|
||||||
Reference in New Issue
Block a user