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

msciabarra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-cli.git


The following commit(s) were added to refs/heads/main by this push:
     new ea23326  pull request with git
ea23326 is described below

commit ea23326daaaa1406a99905b360394cf13fb34ecc
Author: Michele Sciabarra <[email protected]>
AuthorDate: Sat Dec 14 21:34:13 2024 +0100

    pull request with git
---
 .github/workflows/contrib.yml | 25 ++++++++-----------------
 1 file changed, 8 insertions(+), 17 deletions(-)

diff --git a/.github/workflows/contrib.yml b/.github/workflows/contrib.yml
index 47df00c..c614fcd 100644
--- a/.github/workflows/contrib.yml
+++ b/.github/workflows/contrib.yml
@@ -25,28 +25,19 @@ on:
       - "closed"
 
 jobs:
-  share_version:
+  tag_with_version:
     if: ${{ github.event.pull_request.merged }}
     runs-on: ubuntu-latest
-    outputs:
-      version: "${{ steps.get_version.outputs.version }}"
     steps:
       - name: Checkout
         uses: actions/checkout@v4
-      - name: Get Version
-        id: get_version
+      - name: Tag and Push Version
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
           version="v$(cat version.txt)"
           echo "Version: $version"
-          # Set the version as an output
-          echo "::set-output name=version::$version"
-  push_tag:
-    if: ${{ github.event.pull_request.merged }}
-    runs-on: ubuntu-latest
-    needs: read_version
-    steps:
-      - name: Tag commit
-        uses: tvdias/[email protected]
-        with:
-          repo-token: "${{ secrets.GITHUB_TOKEN }}"
-          tag: "${{ needs.share_version.outputs.version }}"        
+          git config user.name "GitHub Actions"
+          git config user.email "[email protected]"
+          git tag -a "$version" -m "generated on pull request"
+          git push origin "$version"

Reply via email to