Skip to content

Commit adb3b19

Browse files
Additional GH Workflow fixes (#399)
* get the latest version before tag creation * update go version * Bump version * Revert "Bump version" This reverts commit 710e71a. --------- Co-authored-by: GitHub Action <[email protected]>
1 parent 9e7b8e1 commit adb3b19

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/autorelease-tag.yml

+11
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ jobs:
5151
- uses: actions/checkout@v3
5252
with:
5353
fetch-depth: 0
54+
ref: ${{ github.ref }}
55+
56+
- name: Pull latest changes
57+
run: git pull origin ${{ github.ref }}
58+
59+
- name: Get latest version bump commit
60+
id: get_latest_commit
61+
run: |
62+
git pull origin ${{ github.ref }}
63+
echo "LATEST_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
5464
5565
- name: Get Commit Count
5666
id: get_commit
@@ -62,6 +72,7 @@ jobs:
6272
uses: mathieudutour/[email protected]
6373
with:
6474
github_token: ${{ secrets.PDTEAMX_PAT }}
75+
commit_sha: ${{ steps.get_latest_commit.outputs.LATEST_COMMIT }}
6576

6677
- name: Create a GitHub release
6778
if: ${{ steps.get_commit.outputs.COMMIT_COUNT > 0 }}

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Base
2-
FROM golang:1.20.6-alpine AS builder
2+
FROM golang:1.21.6-alpine AS builder
33

44
RUN apk add --no-cache git build-base gcc musl-dev
55
WORKDIR /app

0 commit comments

Comments
 (0)