forked from Mellanox/network-operator-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ba5dbd
commit ae39da0
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
git_tag: | ||
type: string | ||
description: The git tag (version) from the calling workflow | ||
required: true | ||
required: false | ||
token: | ||
type: string | ||
description: The github token | ||
|
@@ -16,6 +16,10 @@ on: | |
git_tag: | ||
type: string | ||
description: The git tag (version) to use for `$TAG` | ||
required: false | ||
token: | ||
type: string | ||
description: The github token | ||
required: true | ||
|
||
jobs: | ||
|
@@ -44,17 +48,16 @@ jobs: | |
done | ||
- name: Create PR | ||
env: | ||
DOWNSTREAM_REPO_OWNER: nvidia-ci-cd | ||
DOWNSTREAM_REPO_OWNER: 'Ido Heyvi' | ||
DOWNSTREAM_FEATURE_BRANCH: update-docs-for-${{ env.TAG }} | ||
UPSTREAM_REPO_OWNER: Mellanox | ||
UPSTREAM_REPO_OWNER: 'Ido Heyvi' | ||
UPSTREAM_DEFAULT_BRANCH: main | ||
COMMIT_MESSAGE: ${{ env.PR_TITLE_PREFIX }} ${{ env.TAG }} | ||
run: | | ||
git config user.name nvidia-ci-cd | ||
git config user.email [email protected] | ||
gh repo fork --remote --default-branch-only | ||
gh repo sync $DOWNSTREAM_REPO_OWNER/${{ github.event.repository.name }} --source $UPSTREAM_REPO_OWNER/${{ github.event.repository.name }} --branch $UPSTREAM_DEFAULT_BRANCH | ||
git config user.name 'Ido Heyvi' | ||
git config user.email [email protected] | ||
git checkout test-netops-docs-workflow | ||
git checkout -b $DOWNSTREAM_FEATURE_BRANCH | ||
git status | ||
git add docs | ||
|