7
.github/workflows/update-spec-for-docs.yml
vendored
7
.github/workflows/update-spec-for-docs.yml
vendored
@ -45,19 +45,18 @@ jobs:
|
|||||||
- name: commit the changes in the docs repo
|
- name: commit the changes in the docs repo
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
export VERSION=$(cat VERSION.txt);
|
|
||||||
cd docs
|
cd docs
|
||||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
git add .
|
git add .
|
||||||
git commit -am "YOYO NEW SPEC DOCS ${VERSION}!" || exit 0
|
git commit -am "YOYO NEW SPEC PYTHON DOCS!" || exit 0
|
||||||
git fetch origin
|
git fetch origin
|
||||||
git rebase origin/main || exit 0
|
git rebase origin/main || exit 0
|
||||||
export NEW_BRANCH="update-spec-python"
|
export NEW_BRANCH="update-spec-python"
|
||||||
git checkout -b "$NEW_BRANCH"
|
git checkout -b "$NEW_BRANCH"
|
||||||
git push -f origin "$NEW_BRANCH"
|
git push -f origin "$NEW_BRANCH"
|
||||||
gh pr create --title "Update lang spec docs for ${VERSION}" \
|
gh pr create --title "Update lang spec docs for python" \
|
||||||
--body "Updating the generated docs for go lang" \
|
--body "Updating the generated docs for python" \
|
||||||
--head "$NEW_BRANCH" \
|
--head "$NEW_BRANCH" \
|
||||||
--base main || true
|
--base main || true
|
||||||
env:
|
env:
|
||||||
|
Reference in New Issue
Block a user