Skip to content

Update tzdata to version 2026c (#145) #3

Update tzdata to version 2026c (#145)

Update tzdata to version 2026c (#145) #3

Workflow file for this run

name: Auto Tag on Version Bump
on:
push:
branches:
- master
paths:
- VERSION
jobs:
tag-repo:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: true # Needed to push the tag
- name: Get current version
id: version
run: |
VERSION=$(cat VERSION)
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Check if tag already exists
id: checktag
env:
VERSION: ${{ steps.version.outputs.version }}
run: |
if git rev-parse "${VERSION}" >/dev/null 2>&1; then
echo "skip=true" >> "$GITHUB_OUTPUT"
else
echo "skip=false" >> "$GITHUB_OUTPUT"
fi
- name: Push tag
if: steps.checktag.outputs.skip == 'false'
env:
VERSION: ${{ steps.version.outputs.version }}
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git tag "${VERSION}"
git push origin "${VERSION}"