xonsh/.github/workflows/check-news-item.yml
dependabot[bot] 538c26f0e3
chore(deps): bump actions/setup-python from 3 to 4 (#4837)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-13 10:13:26 +05:30

32 lines
809 B
YAML

name: Check News Item
on:
pull_request_target:
branches:
- main
permissions:
pull-requests: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
name: Check News item
steps:
# note: the checkout will pull code from the base branch. This step should not pull code from the merge commit
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- run: pip install PyGithub
- run: python .github/workflows/check-news.py
env:
PR_NUMBER: "${{ github.event.number }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GITHUB_REPOSITORY: "${{ env.GITHUB_REPOSITORY }}"