Skip to content

Commit

Permalink
update workflow with create other repo branch action
Browse files Browse the repository at this point in the history
Signed-off-by: GuillaumeFalourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed Jul 1, 2021
1 parent 86c2a18 commit 1d20bc0
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/26-create-release-branch-other-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

0 comments on commit 1d20bc0

Please sign in to comment.