Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
754199e7
Commit
754199e7
authored
May 13, 2022
by
Arun Babu Neelicattu
Committed by
Bjorn Neergaard
May 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: allow doc builds from forks
parent
141d9ebb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
.github/workflows/docs.yml
+16
-15
No files found.
.github/workflows/docs.yml
View file @
754199e7
name
:
"
Documentation
Preview"
name
:
"
Documentation
Preview"
on
:
on
:
push
:
paths-ignore
:
-
'
**'
-
'
!docs/**'
-
'
!.github/workflows/docs.yml'
branches-ignore
:
-
main
-
master
pull_request
:
pull_request
:
# allow repository maintainers to modify and test workflow
paths-ignore
:
-
"
**"
-
"
!.github/workflows/docs.yml"
pull_request_target
:
# enable runs for this workflow when labeled as documentation only
# prevent execution when the workflow itself is modified from a fork
types
:
-
labeled
paths-ignore
:
paths-ignore
:
-
'
**'
-
"
**"
-
'
!docs/**'
-
"
!docs/**"
-
'
!.github/workflows/docs.yml'
branches
:
-
'
**'
jobs
:
jobs
:
deploy
-preview
:
deploy
:
name
:
Build & Deploy
name
:
Build & Deploy
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
if
:
|
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'Documentation'))
|| (github.event_name != 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
steps
:
steps
:
-
name
:
Checkout Website Source
-
name
:
Checkout Website Source
uses
:
actions/checkout@v3
uses
:
actions/checkout@v3
...
@@ -32,6 +32,7 @@ jobs:
...
@@ -32,6 +32,7 @@ jobs:
uses
:
actions/checkout@v3
uses
:
actions/checkout@v3
with
:
with
:
path
:
poetry
path
:
poetry
ref
:
${{ github.event.pull_request.head.sha }}
-
name
:
Set up Python
-
name
:
Set up Python
uses
:
actions/setup-python@v2
uses
:
actions/setup-python@v2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment