Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
d84e46be
Unverified
Commit
d84e46be
authored
Feb 22, 2023
by
Samruddhi Khandale
Committed by
GitHub
Feb 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"Update Documentation" workflow - use gh api to create a documentation PR (#459)
parent
8d3685e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
update-documentation.yml
.github/workflows/update-documentation.yml
+11
-3
No files found.
.github/workflows/update-documentation.yml
View file @
d84e46be
...
@@ -8,6 +8,7 @@ on:
...
@@ -8,6 +8,7 @@ on:
jobs
:
jobs
:
generate
:
generate
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
environment
:
documentation
if
:
"
github.ref
==
'refs/heads/main'"
if
:
"
github.ref
==
'refs/heads/main'"
steps
:
steps
:
-
uses
:
actions/checkout@v3
-
uses
:
actions/checkout@v3
...
@@ -18,10 +19,10 @@ jobs:
...
@@ -18,10 +19,10 @@ jobs:
generate-docs
:
"
true"
generate-docs
:
"
true"
base-path-to-features
:
"
./src"
base-path-to-features
:
"
./src"
-
name
:
Add and Commit
Documentation
-
name
:
Create a PR for
Documentation
id
:
push_image_info
id
:
push_image_info
env
:
env
:
GITHUB_TOKEN
:
${{ secrets.
GITHUB_TOKEN
}}
GITHUB_TOKEN
:
${{ secrets.
PAT
}}
run
:
|
run
:
|
set -e
set -e
echo "Start."
echo "Start."
...
@@ -42,5 +43,12 @@ jobs:
...
@@ -42,5 +43,12 @@ jobs:
# Push
# Push
if [ "$NO_UPDATES" != "true" ] ; then
if [ "$NO_UPDATES" != "true" ] ; then
git push origin "$branch"
git push origin "$branch"
gh pr create --title "$message" --body "$message"
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
/repos/${GITHUB_REPOSITORY}/pulls \
-f title="$message" \
-f body="$message" \
-f head="$branch" \
-f base='main'
fi
fi
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