Add PHP 8.2.30, 8.3.30, 8.4.17, and 8.5.2 configurations and dependencies #62
Workflow file for this run
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
| on: pull_request_target | |
| name: pull_request_target | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| jobs: | |
| metadata: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| repository: ${{ steps.metadata.outputs.repository }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ahmadnassri/action-metadata@v2 | |
| id: metadata | |
| auto-merge: | |
| timeout-minutes: 5 | |
| runs-on: ubuntu-latest | |
| # only run for dependabot PRs | |
| if: ${{ github.actor == 'dependabot[bot]' }} | |
| env: | |
| PR_URL: ${{github.event.pull_request.html_url}} | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| steps: | |
| - id: dependabot | |
| uses: dependabot/fetch-metadata@v2 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: auto merge conditions | |
| id: auto-merge | |
| if: | | |
| ( | |
| steps.dependabot.outputs.update-type == 'version-update:semver-patch' && | |
| contains('direct:production,indirect:production', steps.dependabot.outputs.dependency-type) | |
| ) || ( | |
| steps.dependabot.outputs.update-type == 'version-update:semver-minor' && | |
| contains('direct:development,indirect:development', steps.dependabot.outputs.dependency-type) | |
| ) | |
| run: echo "::notice ::auto-merge conditions satisfied" | |
| - name: auto approve pr | |
| if: ${{ steps.auto-merge.conclusion == 'success' }} | |
| run: | | |
| gh pr review --approve "$PR_URL" | |
| gh pr merge --auto --rebase "$PR_URL" |