mirror of
https://github.com/PHPMailer/PHPMailer.git
synced 2024-09-20 01:52:15 +02:00
GH Actions: don't run the docs workflow on forks (#2371)
The `docs` workflow to deploy the GH Pages website is run on pushes to `master`, but that includes pushes to `master` in forks, which obviously can't deploy to the GH Pages site. This means that in forks (and there are nearly 9000 of them), this workflow will always fail, while in reality, it shouldn't be run in the first place. So, I'd like to propose making this small change, which _should_ prevent the `docs` workflow from being run on forks. Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
This commit is contained in:
parent
702502aca2
commit
8eacfe7925
1
.github/workflows/docs.yaml
vendored
1
.github/workflows/docs.yaml
vendored
@ -7,6 +7,7 @@ jobs:
|
||||
build_and_publish:
|
||||
name: Build and publish Docs
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'PHPMailer/PHPMailer'
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v1
|
||||
|
Loading…
Reference in New Issue
Block a user