Skip to content

Remove the unused PHPCS rulesets and widen the workflow triggers #299

Remove the unused PHPCS rulesets and widen the workflow triggers

Remove the unused PHPCS rulesets and widen the workflow triggers #299

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