This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal-go-services.git


The following commit(s) were added to refs/heads/main by this push:
     new 55a34a6  ci: tag for each service (#8)
55a34a6 is described below

commit 55a34a639e8a916c346de83c92ef26498ac64f57
Author: Hanchin Hsieh <[email protected]>
AuthorDate: Mon Jul 29 00:57:21 2024 +0800

    ci: tag for each service (#8)
    
    Signed-off-by: Hanchin Hsieh <[email protected]>
---
 .github/workflows/build_artifacts.yaml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build_artifacts.yaml 
b/.github/workflows/build_artifacts.yaml
index e9b4fa6..82ee2a3 100644
--- a/.github/workflows/build_artifacts.yaml
+++ b/.github/workflows/build_artifacts.yaml
@@ -106,10 +106,22 @@ jobs:
           git add -A
           git commit --allow-empty -m "Auto commit by GitHub Actions $VERSION"
           git push -f --set-upstream origin main
+  tag:
+    needs: [ matrix, build, generate ]
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        service: ${{ fromJson(needs.matrix.outputs.matrix).service }}
+    steps:
+      - uses: actions/checkout@v4
       - name: Auto Tag
         if: ${{ inputs.opendal_go_version != '' || 
github.event.client_payload.opendal_go_version != '' }}
         env:
-          TAG: ${{ inputs.opendal_go_version || 
github.event.client_payload.opendal_go_version }}
+          SERVICE: ${{ matrix.service }} 
+          VERSION: ${{ inputs.opendal_go_version || 
github.event.client_payload.opendal_go_version }}
         run: |
+          SERVICE=$(echo $SERVICE | tr '-' '_')
+          TAG="$SERVICE/$VERSION"
           git tag $TAG
           git push -f origin $TAG

Reply via email to