Skip to content

Commit

Permalink
[ADD] adhoc-dev workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dbollini committed Apr 3, 2023
1 parent 6bf0011 commit d43f168
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/push_to_another_repo.yml
@@ -0,0 +1,20 @@
on:
push:
branches: "*.0-*"
pull_request:
branches: "*.0"

jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'adhoc-dev' }}
steps:
- name: Clone adhoc-dev
with:
token: ${{ secrets.TOKEN }}
fetch-depth: 0
uses: actions/checkout@v3
- name: Push to ingadhoc
run: git push --force https://github.com/ingadhoc/${GITHUB_REPOSITORY#'adhoc-dev/'}.git HEAD
- name: PR link
run: echo 'Create pr by visiting https://github.com/ingadhoc/'${GITHUB_REPOSITORY#'adhoc-dev/'}'/pull/new/'${GITHUB_REF_NAME}

0 comments on commit d43f168

Please sign in to comment.