Skip to content

Commit

Permalink
test 6
Browse files Browse the repository at this point in the history
  • Loading branch information
heyvister1 committed Dec 23, 2024
1 parent c70e240 commit eec0993
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docs-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
docs-ci:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GH_DOCS_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN_DOCS }}
# keeping TAG for cases docs repo workflow is triggered with tag input
TAG: ${{ inputs.git_tag }}
REF_NAME: ${{ github.ref_name }}
Expand All @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/network-operator-docs # repo must be explicitly set here for workflow calling to behave correctly
token: ${{ inputs.token || secrets.GH_DOCS_TOKEN }}
token: ${{ inputs.token || secrets.GITHUB_TOKEN_DOCS }}
- name: Setup Go
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -58,21 +58,21 @@ jobs:
- name: Create PR
env:
REF_NAME: ${{ github.ref_name }}
DOWNSTREAM_REPO_OWNER: heyvister1
DOWNSTREAM_REPO_OWNER: nvidia-ci-cd
DOWNSTREAM_FEATURE_BRANCH: update-docs-for-${{ env.REF_NAME }}
UPSTREAM_REPO_OWNER: Mellanox
UPSTREAM_DEFAULT_BRANCH: main
run: |
git config user.name heyvister1
git config user.email [email protected]
git remote set-url origin https://heyvister1:${{ env.GITHUB_TOKEN }}@github.com/heyvister1/network-operator-docs.git
export GH_TOKEN=${{ env.GH_TOKEN }}
gh repo sync $DOWNSTREAM_REPO_OWNER/network-operator-docs --source $UPSTREAM_REPO_OWNER/network-operator-docs --branch $UPSTREAM_DEFAULT_BRANCH
git checkout -b $DOWNSTREAM_FEATURE_BRANCH
git add docs
COMMIT_MESSAGE="$PR_TITLE_PREFIX $COMMIT_SUFFIX"
git commit -m "$COMMIT_MESSAGE"
git push -u origin $DOWNSTREAM_FEATURE_BRANCH --force
export GH_TOKEN=${{ env.GITHUB_TOKEN }}
gh pr create \
--head $DOWNSTREAM_REPO_OWNER:$DOWNSTREAM_FEATURE_BRANCH \
--base $UPSTREAM_DEFAULT_BRANCH \
Expand Down

0 comments on commit eec0993

Please sign in to comment.