Skip to content

Try again

Try again #107

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
- name: git
run: |
git --version
- name: Set color
id: color-selector
run: echo "SELECTED_COLOR=$(git for-each-ref --sort=-version:refname --format='%(refname:lstrip=2)' refs/tags | head -1)" >> "$GITHUB_OUTPUT"
- name: Get color
env:
SELECTED_COLOR: ${{ steps.color-selector.outputs.SELECTED_COLOR }}
run: echo "The selected color is $SELECTED_COLOR"
- name: Retrieve latest tag
id: latest-tag
run: echo "LATEST_TAG=$(git for-each-ref --sort=-version:refname --format='%(refname:lstrip=2)' refs/tags | head -1)" >> "$GITHUB_OUTPUT"
- name: Save latest tag
env:
LATEST_TAG: ${{ steps.latest-tag.outputs.LATEST_TAG }}
run: echo "$LATEST_TAG"