Skip to content

Commit

Permalink
Create check_release_notes.yml (#16308)
Browse files Browse the repository at this point in the history
Creating an dummy check_release_notes.yml, so it has correct permissions for it to run in #16283
  • Loading branch information
vzarytovskii authored Nov 20, 2023
1 parent 5cdf959 commit a98013f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check_release_notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check release notes
on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
branches:
- 'main'
- 'release/*'
jobs:
check_release_notes:
permissions:
issues: write
pull-requests: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: Get github ref
uses: actions/github-script@v3
id: get-pr
with:
script: |
const result = await github.pulls.get({
pull_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
});
return { "pr_number": context.issue.number, "ref": result.data.head.ref, "repository": result.data.head.repo.full_name};

0 comments on commit a98013f

Please sign in to comment.