Add Deploy 17.2.0-rc1, 18.0.0-rc1 and 18.0.0-rc2 release notes #94
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: PR Welcome Comment | |
| on: | |
| pull_request: | |
| types: [opened] | |
| jobs: | |
| comment: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Check org membership | |
| id: check_member | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| try { | |
| await github.rest.orgs.checkMembershipForUser({ | |
| org: umbraco, | |
| username: context.paylod.pull_request.user.login | |
| }); | |
| return true; | |
| } catch { | |
| return false; | |
| } | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Post welcome comment | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const fs = require('fs') | |
| const body = fs.readFileSync('.github/workflows/ai-comment.md', 'utf8') | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: body | |
| }) |