Skip to content

revert to older version of timer text #144

revert to older version of timer text

revert to older version of timer text #144

Workflow file for this run

name: Auto Tag
on:
push:
branches:
- main
jobs:
tag:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.ORBIT_PAT }}
- name: Calculate version and create tag
run: |
# Check if this is an automated data-only commit (meta talent updates, etc.)
LAST_MSG="$(git log -1 --pretty=%s)"
if echo "$LAST_MSG" | grep -qE "^data:"; then
# Find the latest base release tag (tags without dots)
BASE_TAG=$(git tag --list --sort=-v:refname | grep -vE "\." | head -n 1)
if [ -z "$BASE_TAG" ]; then
BASE_TAG="0"
fi
# Count existing sub-version tags on this base
DATA_SEQ=$(git tag --list "${BASE_TAG}.*" | wc -l)
DATA_SEQ=$((DATA_SEQ + 1))
VERSION="${BASE_TAG}.${DATA_SEQ}"
else
VERSION="$(git rev-list --count HEAD)"
fi
echo "Calculated version: $VERSION"
# Check if tag already exists
if git rev-parse "$VERSION" >/dev/null 2>&1; then
echo "Tag $VERSION already exists, skipping"
exit 0
fi
# Configure git for tagging
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# Create and push tag
git tag -a "$VERSION" -m "Release $VERSION"
git push origin "$VERSION"