From ea8858f6fdde78748a9db4c69219c5b6fc214f3f Mon Sep 17 00:00:00 2001 From: kentsanggds Date: Mon, 27 Nov 2023 11:50:38 +0000 Subject: [PATCH] Update build-image-on-tags.yaml to trigger from v prefix Update create-pr-on-tags.yaml to remove k prefix filter --- .github/workflows/build-image-on-tags.yaml | 2 +- .github/workflows/create-pr-on-tags.yaml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-image-on-tags.yaml b/.github/workflows/build-image-on-tags.yaml index caaf02f6..6300b763 100644 --- a/.github/workflows/build-image-on-tags.yaml +++ b/.github/workflows/build-image-on-tags.yaml @@ -3,7 +3,7 @@ name: Build and push images on tags on: push: tags: - - 'k[0-9]+.[0-9]+.[0-9]+' + - 'v[0-9]+.[0-9]+.[0-9]+' jobs: build_and_push: diff --git a/.github/workflows/create-pr-on-tags.yaml b/.github/workflows/create-pr-on-tags.yaml index c2109d8e..22428f75 100644 --- a/.github/workflows/create-pr-on-tags.yaml +++ b/.github/workflows/create-pr-on-tags.yaml @@ -14,8 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set GH_REF - # Change back to git tag once we no longer need the k versions - run: echo "GH_REF=`echo $(git fetch -t -q && git tag -l "k*" | sort --version-sort | tail -n1)`" >> $GITHUB_ENV + run: echo "GH_REF=`echo $(git fetch -t -q | sort --version-sort | tail -n1)`" >> $GITHUB_ENV - run: bash ./docker/create-pr.sh env: GH_TOKEN: ${{ secrets.PR_GITHUB_TOKEN }}