-
Notifications
You must be signed in to change notification settings - Fork 102
38 lines (35 loc) · 1.2 KB
/
26-create-release-branch-other-repo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: 26 - Create release branch on another repo
on:
push:
tags:
- '*.*.*'
jobs:
# 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
steps:
- uses: actions/[email protected]
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- uses: GuillaumeFalourd/create-other-repo-branch-action@main
with:
repository_owner: ZupIT
repository_name: docs-ritchie
new_branch_name: test-${{ steps.vars.outputs.tag }}
access_token: ${{ secrets.ACCESS_TOKEN}}