-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update workflow with create other repo branch action
Signed-off-by: GuillaumeFalourd <[email protected]>
- Loading branch information
1 parent
86c2a18
commit 1d20bc0
Showing
1 changed file
with
20 additions
and
16 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,30 +6,34 @@ on: | |
- '*.*.*' | ||
|
||
jobs: | ||
release-git-commands: | ||
# release-git-commands: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/[email protected] | ||
# - name: Set output | ||
# id: vars | ||
# run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} | ||
# - name: Generate release on documentation repo | ||
# run: | | ||
# git clone https://${{ secrets.ACCESS_TOKEN }}@github.com/ZupIT/docs-ritchie.git | ||
# cd docs-ritchie/ | ||
# git init | ||
# git checkout -b test-${{ steps.vars.outputs.tag }} | ||
# git config user.name github-actions | ||
# git config user.email [email protected] | ||
# git push origin test-${{ steps.vars.outputs.tag }} | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: release-git-commands | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set output | ||
id: vars | ||
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} | ||
- name: Generate release on documentation repo | ||
run: | | ||
git clone https://${{ secrets.ACCESS_TOKEN }}@github.com/ZupIT/docs-ritchie.git | ||
cd docs-ritchie/ | ||
git init | ||
git checkout -b test-${{ steps.vars.outputs.tag }} | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git push origin test-${{ steps.vars.outputs.tag }} | ||
release-action: | ||
runs-on: ubuntu-latest | ||
needs: release-git-commands | ||
steps: | ||
- uses: GuillaumeFalourd/create-other-repo-branch-action@main | ||
with: | ||
repository_owner: ZupIT | ||
repository_name: docs-ritchie | ||
new_branch_name: test-1 | ||
new_branch_name: test-${{ steps.vars.outputs.tag }} | ||
access_token: ${{ secrets.ACCESS_TOKEN}} |