mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 09:06:04 +02:00
Update workflows (#1112)
* Update build-validation.yml * Create live-protection.yml * Create docs-verifier.yml * Delete docs-verifier.yml
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
on: [pull_request_target]
|
||||
|
||||
jobs:
|
||||
comment:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/github-script@v4
|
||||
env:
|
||||
SHOULD_COMMENT: ${{ github.base_ref == 'refs/heads/live' && !(github.event.issue.user.login == 'cxwtool' || github.head_ref == 'refs/heads/main') }}
|
||||
with:
|
||||
script: |
|
||||
if (process.env.SHOULD_COMMENT == 'true') {
|
||||
github.issues.createComment({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
body: 'It looks like this pull request may have been opened on the `live` branch by mistake. In general, PRs should target the `main` branch.'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user