Skip to content

Commit

Permalink
Add GH-Actions workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayesh committed Apr 2, 2024
1 parent 86723ff commit 1519515
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Sync PHP Package Versions
permissions:
contents: write
on:
workflow_dispatch:
workflow_call:
schedule:
- cron: "20 4 * * *"

jobs:
run:
runs-on: ubuntu-latest
name: Update version info
steps:
- uses: actions/checkout@v4

- name: "PHP 8.3"
run: |
php generate.php ${{ matrix.php-versions }}
- name: List dirs
run: find data | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/"

# collect:
# needs: run
# runs-on: ubuntu-latest
# name: Collect and Commit Data
# permissions:
# contents: write
#
# steps:
# - uses: actions/checkout@v4
# name: Checkout main repo
#
#
# - name: Prime files
# run: |
# cp scratch/* data/ -Rf
#
# - name: List dirs
# run: find data | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/"
#
# - name: Generate commit message
# id: commit_msg
# run: echo "commit_msg=$(date +"%Y %b %d")" >> "$GITHUB_OUTPUT"
#
# - name: Commit data
# uses: stefanzweifel/git-auto-commit-action@v5
# with:
# commit_message: ${{ steps.commit_msg.outputs.commit_msg }}
# branch: main
# repository: data
# add_options: '-A'

0 comments on commit 1519515

Please sign in to comment.