mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-03-12 04:35:40 -07:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout 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> [skip ci]
28 lines
695 B
YAML
28 lines
695 B
YAML
name: Pull Requests
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, synchronize, edited, reopened]
|
|
|
|
jobs:
|
|
check-branch:
|
|
name: Check Pull Request
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Comment on Pull Request
|
|
uses: mshick/add-pr-comment@v2
|
|
if: github.base_ref != 'nightly'
|
|
with:
|
|
message: Pull requests must be made to the `nightly` branch. Thanks.
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Fail Workflow
|
|
if: github.base_ref != 'nightly'
|
|
run: |
|
|
echo Base: "$GITHUB_BASE_REF"
|
|
echo Head: "$GITHUB_HEAD_REF"
|
|
exit 1
|