diff --git a/.gitea/workflows/example.yaml b/.gitea/workflows/example.yaml index a4debb9..4bb159b 100644 --- a/.gitea/workflows/example.yaml +++ b/.gitea/workflows/example.yaml @@ -1,11 +1,13 @@ name: Workflow de prueba on: - - push + pull_request_review: + types: [submitted] + env: DOCKER_ORG: beyondcx - BRANCH_NAME: proxy + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} jobs: Build and push images: @@ -14,12 +16,13 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Extract Branch Name - run: echo "${{ gitea.ref }}" ; - echo "${{ gitea.ref }}" | sed 's|refs/heads/||' ; + - name: Extract Tag Name + uses: olegtarasov/get-tag@v2.1.4 + id: tagName + + - name: Echo branch name + run: echo "${{ env.BRANCH_NAME }}" - echo ${{ env.BRANCH_NAME }} - #- name: Setup QEMU # uses: docker/setup-qemu-action@v3 diff --git a/.gitea/workflows/tag.yaml b/.gitea/workflows/tag.yaml index b5119fc..6a75550 100644 --- a/.gitea/workflows/tag.yaml +++ b/.gitea/workflows/tag.yaml @@ -1,12 +1,15 @@ name: Tag Release on: - - create + release: + types: [created,edited,published] jobs: create new images with tag: runs-on: ubuntu-latest steps: - - name: Extract Branch Name - run: echo "${{ gitea.ref }}" ; + - name: Extract Tag Name + uses: olegtarasov/get-tag@v2.1.4 + id: tagName + run: echo "$GIT_TAG_NAME";