Skip to content

chore(deps): update dependency nextcloud/server to v28 - autoclosed #193

chore(deps): update dependency nextcloud/server to v28 - autoclosed

chore(deps): update dependency nextcloud/server to v28 - autoclosed #193

name: Check PRs if on staging
on:
pull_request_target:
types: [opened, edited]
permissions: {}
jobs:
is_not_staging:
runs-on: ubuntu-latest
if: github.event.pull_request.base.ref != 'staging' #check if the target branch is not staging
steps:
- name: Send message
uses: thollander/actions-comment-pull-request@v2.4.3
with:
GITHUB_TOKEN: ${{ GITHUB_TOKEN }}

Check failure on line 15 in .github/workflows/check_prs_if_on_staging.yml

View workflow run for this annotation

GitHub Actions / Check PRs if on staging

Invalid workflow file

The workflow is not valid. .github/workflows/check_prs_if_on_staging.yml (Line: 15, Col: 25): Unrecognized named-value: 'GITHUB_TOKEN'. Located at position 1 within expression: GITHUB_TOKEN
message: |
Thanks for contributing!
I noticed that you didn't select `staging` as your base branch. Please change the base branch to `staging`.
See the attached picture on how to change the base branch to `staging`:
![check_prs_if_on_staging.png](https://raw.githubusercontent.com/ZynerOrg/zynerone/master/.github/workflows/assets/check_prs_if_on_staging.png)
- name: Fail #we want to see failed checks in the PR
if: ${{ success() }} #set exit code to 1 even if commenting somehow failed
run: exit 1
is_staging:
runs-on: ubuntu-latest
if: github.event.pull_request.base.ref == 'staging' #check if the target branch is staging
steps:
- name: Success
run: exit 0