Try again #107
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |