Skip to content

last commit worked #111

last commit worked

last commit worked #111

Workflow file for this run

name: build
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.23]
steps:
- name: Check out Source
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Retrieve latest tag
id: latest-tag
run: |
echo "LATEST_TAG=$(git for-each-ref --sort=-version:refname --format='%(refname:lstrip=2)' --count=1 refs/tags)" >> "$GITHUB_OUTPUT"
- name: Save latest tag
env:
LATEST_TAG: ${{ steps.latest-tag.outputs.LATEST_TAG }}
run: |
echo "latest tag: $LATEST_TAG"
- name: Print latest tag
run: echo "$LATEST_TAG"