From 3cf86b5672eb40af52c855ee6b242b4718969a6f Mon Sep 17 00:00:00 2001 From: Moritz Kirmse Date: Mon, 12 Aug 2024 13:07:16 +0200 Subject: [PATCH] cleanup --- .github/workflows/ci_bundle.yml | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/.github/workflows/ci_bundle.yml b/.github/workflows/ci_bundle.yml index d0ae444c..37426c4a 100644 --- a/.github/workflows/ci_bundle.yml +++ b/.github/workflows/ci_bundle.yml @@ -3,7 +3,6 @@ on: push: branches: - 'dummy_main' - - 'dummy_main_PR_test' tags: - '*' jobs: @@ -16,34 +15,13 @@ jobs: with: # default depth is 1, but we need the parent refs fetch-depth: 2 - - name: check - shell: bash - run: | - git log -n 1 - git log -n 1 --parents - git log -n 1 --pretty=%p - name: compute tag name shell: bash run: | - git log --pretty="%h" -n 1 - git log -n 1 - git log -n 2 - git log -n 2 --parents - git log --pretty=%P -1 --merges - git log --pretty=%P -1 --no-merges - git log --pretty="%p" -n 1 - git log -n 1 --pretty="%P" - git log -n 1 --pretty="%p" - git log -n 1 --pretty=%p - git log --pretty="%p" -n 1 - echo $([[ $(git log --pretty="%p" -n 1 | wc -w) -gt 1 ]] && echo "PR 1" || echo "regular push 1") - echo $([[ $(git log --pretty="%p" -n 1 | wc -w) -gt 1 ]] \ - && echo "PR" \ - || echo "regular push") branch=$([[ $(git log --pretty="%p" -n 1 | wc -w) -gt 1 ]] \ && echo $(git log -n 1 --pretty="%s" | sed "s|.*Geoportail-Luxembourg/\(.*\)|\1|") \ || git branch --show-current) - echo branch + echo $branch echo "AUTO_TAG=${branch}_CI_$(git log -n 1 --pretty=%h)" >> $GITHUB_ENV - name: tag ${{ github.head_ref }} run: |