auto package update #200
This file contains hidden or 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: auto package update | |
| on: | |
| schedule: | |
| - cron: "0 0 * * 0" | |
| workflow_dispatch: | |
| jobs: | |
| auto-package-update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| # Must be used to trigger workflow after push | |
| token: ${{ secrets.ACCESS_TOKEN }} | |
| - name: Copy .env | |
| run: php -r "copy('.env.ci', '.env');" | |
| - uses: ./.github/actions/php | |
| - name: Run composer update | |
| run: composer update && composer bump && composer update | |
| - # commit only to core contributors who have repository access | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "[ci] package-updates" | |
| commit_author: "GitHub Action <actions@github.com>" | |
| commit_user_email: "action@github.com" |