From 3581a19735aa28099b28fc2b79234dfec21fde1b Mon Sep 17 00:00:00 2001 From: kentsanggds Date: Tue, 16 Jan 2024 17:22:59 +0000 Subject: [PATCH] Add git fetch --- .github/workflows/create-pr-on-tags.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-pr-on-tags.yaml b/.github/workflows/create-pr-on-tags.yaml index d79a1c5c..85ce8fc5 100644 --- a/.github/workflows/create-pr-on-tags.yaml +++ b/.github/workflows/create-pr-on-tags.yaml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set GH_REF - run: echo "GH_REF=`echo $(git describe --tags $(git rev-list --tags --max-count=1))`" >> $GITHUB_ENV + run: echo "GH_REF=`echo $(git fetch -t -q && git describe --tags $(git rev-list --tags --max-count=1))`" >> $GITHUB_ENV - run: bash ./docker/create-pr.sh env: GH_TOKEN: ${{ secrets.PR_GITHUB_TOKEN }}