Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.25'

- name: Build
run: go build -v ./...
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Release

on:
push:
branches: [main]
tags: ['v*']
release:
types: [published]
Expand Down Expand Up @@ -45,7 +44,7 @@ jobs:
with:
# Use a pinned Go version instead of parsing go.mod to avoid
# failing on unsupported prerelease versions in the module file.
go-version: '1.23'
go-version: '1.25'

- name: Download dependencies
run: go mod download
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/tag-on-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Tag for release on merge

on:
push:
branches: ["main"]

permissions:
contents: write

jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Generate tag name
id: tag
run: |
TAG="v$(date -u +%Y.%m.%d.%H%M%S)"
echo "tag=$TAG" >> "$GITHUB_OUTPUT"

- name: Create tag on merge commit
env:
TAG_NAME: ${{ steps.tag.outputs.tag }}
run: |
git tag "$TAG_NAME" "$GITHUB_SHA"
git push origin "$TAG_NAME"
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/binsquare/envmap

go 1.23
go 1.25

require (
github.com/1Password/connect-sdk-go v1.5.0
Expand Down