This is an automated email from the ASF dual-hosted git repository.
sciabarracom pushed a commit to branch 0.9.0
in repository https://gitbox.apache.org/repos/asf/openserverless-admin-api.git
The following commit(s) were added to refs/heads/0.9.0 by this push:
new 69bcd19 fix tagging
69bcd19 is described below
commit 69bcd192c350c22560444cf56fbe6be98a60aa22
Author: Michele Sciabarra <[email protected]>
AuthorDate: Fri Sep 11 20:59:26 2026 +0200
fix tagging
---
.github/workflows/image.yml | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml
index 235cba8..b13c865 100644
--- a/.github/workflows/image.yml
+++ b/.github/workflows/image.yml
@@ -49,23 +49,19 @@ jobs:
# Manual run: create a new snapshot tag on the current HEAD and push it.
# The push of the tag does not start another run (GITHUB_TOKEN pushes do
# not trigger workflows), so this same run goes on and builds it.
- - name: Tag HEAD (manual run)
+ - name: License
+ uses: apache/[email protected]
+ - name: Assign TAG from manual run
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
git config user.name "github-actions[bot]"
git config user.email
"41898282+github-actions[bot]@users.noreply.github.com"
task tag
task ci
- - name: License
- uses: apache/[email protected]
- - name: Assign TAG from pull request
- if: ${{ github.event_name == 'pull_request' }}
- run: |
- echo "IMG_TAG=$(git rev-parse --short HEAD)" >> "$GITHUB_ENV"
- - name: Assign TAG from push
- if: ${{ github.event_name != 'pull_request' }}
- run: |
echo "IMG_TAG=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV"
+ - name: Assign TAG from push
+ if: ${{ github.event_name == 'push' }}
+ run: echo "IMG_TAG=${{ github.ref_name }}" >> "$GITHUB_ENV"
- name: Generate .env
run: |
OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]'
'[:lower:]')