Skip to content

Commit daba62f

Browse files
authored
Create push_to_another_repo.yml
1 parent 47048d7 commit daba62f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
push:
3+
branches: "*.0-*"
4+
pull_request:
5+
branches: "*.0"
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
if: ${{ github.repository_owner == 'adhoc-dev' }}
11+
steps:
12+
- name: Clone adhoc-dev
13+
with:
14+
token: ${{ secrets.TOKEN }}
15+
fetch-depth: 0
16+
uses: actions/checkout@v3
17+
- name: Push to ingadhoc
18+
run: git push --force https://github.com/ingadhoc/${GITHUB_REPOSITORY#'adhoc-dev/'}.git HEAD
19+
- name: PR link
20+
run: echo 'Create pr by visiting https://github.com/ingadhoc/'${GITHUB_REPOSITORY#'adhoc-dev/'}'/pull/new/'${GITHUB_REF_NAME}

0 commit comments

Comments
 (0)