Skip to content

Commit

Permalink
update new workflow
Browse files Browse the repository at this point in the history
Signed-off-by: GuillaumeFalourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed Jun 29, 2021
1 parent 2ed984b commit 7cc70b1
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/26-create-release-branch-other-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,12 @@ jobs:
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Check output
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: |
echo $RELEASE_VERSION
echo ${{ steps.vars.outputs.tag }}
- name: Clone ZupIT/docs-ritchie PUBLIC repository
uses: GuillaumeFalourd/clone-github-repo-action@v1
with:
owner: 'ZupIT'
repository: 'docs-ritchie'
access-token: ${{ secrets.ACCESS_TOKEN }}
- name: Generate release on documentation repo
run: |
cd docs-ritchie
git clone https://${{ secrets.ACCESS_TOKEN }}@github.com/ZupIT/$docs-ritchie.git
cd docs-ritchie/
ls -lha
git init
git checkout -b test-${{ steps.vars.outputs.tag }}
git add . ; git commit -m "Creating new release according the Ritchie CLI tag ${{ steps.vars.outputs.tag }}"
git push origin test-${{ steps.vars.outputs.tag }}

0 comments on commit 7cc70b1

Please sign in to comment.