Sync PHP Package Versions #120
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: 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 }} |