Skip to content

Bump shivammathur/setup-php from 2.29.0 to 2.30.0 (#178) #104

Bump shivammathur/setup-php from 2.29.0 to 2.30.0 (#178)

Bump shivammathur/setup-php from 2.29.0 to 2.30.0 (#178) #104

Workflow file for this run

name: Tag new patch releases on branch push
on:
push:
branches: [ stable ]
workflow_dispatch:
jobs:
build:
name: Tag new patch release
runs-on: ubuntu-latest
if: "github.event_name == 'workflow_dispatch' || startsWith(github.event.head_commit.message, 'New translations') || startsWith(github.event.head_commit.message, 'New Crowdin updates') "
concurrency: tag-patches
steps:
- uses: actions/checkout@v4
- name: Tag new version
run: |
BASE_VERSION="2.20"
PATCH_VERSION_OFFSET=101
PATCH_VERSION=$(($GITHUB_RUN_NUMBER-$PATCH_VERSION_OFFSET))
FULL_VERSION="$BASE_VERSION.$PATCH_VERSION"
echo "Tagging version $FULL_VERSION"
git config user.name github-actions
git config user.email github-actions@github.com
git tag "$FULL_VERSION"
- name: Push changes
run: git push origin --tags