Remove the unused PHPCS rulesets and widen the workflow triggers #299
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
| name: GitHub Actions - Create Release | |
| on: | |
| pull_request_review: | |
| types: | |
| - submitted | |
| jobs: | |
| CreateRelease: | |
| name: Create release for github-actions package | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event.pull_request.head.ref == 'release/actions' && github.event.review.state == 'approved' }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Create release | |
| uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| const workspace = '${{ github.workspace }}'; | |
| const { default: script } = await import( `${ workspace }/.github/scripts/create-release.mjs` ); | |
| await script( { | |
| github, | |
| context, | |
| outputJsonPath: '/tmp/release.json', | |
| packageDir: 'packages/github-actions', | |
| packageName: 'github-actions', | |
| tagPrefix: 'actions-v', | |
| } ); | |
| - name: Upload release artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: release | |
| path: /tmp/release.json |