Skip to content

Sync PHP Package Versions #120

Sync PHP Package Versions

Sync PHP Package Versions #120

Workflow file for this run

name: Sync PHP Package Versions
permissions:
contents: write
on:
workflow_dispatch:
workflow_call:
schedule:
- cron: "20 4,8,12,16,20 * * *"
jobs:
run:
runs-on: ubuntu-24.04
name: Update version info
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@verbose
with:
php-version: '8.4'
- name: "Update version info"
run: |
php generate.php 8.1
php generate.php 8.2
php generate.php 8.3
php generate.php 8.4
- name: List dirs
run: find . | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/"
- name: Generate commit message
id: commit_msg
run: echo "commit_msg=$(date +"%Y.%m.%d")" >> "$GITHUB_OUTPUT"
- name: Commit data
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Automatic updates - ${{ steps.commit_msg.outputs.commit_msg }}
branch: main
add_options: '-A'
tagging_message: ${{ steps.commit_msg.outputs.commit_msg }}