Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Add support for custom Target Branch Name
Browse files Browse the repository at this point in the history
  • Loading branch information
f11h committed May 11, 2022
1 parent 184cc76 commit 39a5318
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ jobs:
REPO_OWNER: corona-warn-app
REPO_NAME: cwa-verification-server
LABEL_NAME: chore
TARGET_BRANCH: master
secrets:
GH_ADMIN_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
8 changes: 6 additions & 2 deletions .github/workflows/update-depending-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
LABEL_NAME:
type: string
required: true
TARGET_BRANCH:
type: string
required: true
secrets:
GH_ADMIN_TOKEN:
required: true
Expand All @@ -25,12 +28,13 @@ jobs:
REPO_OWNER: ${{ inputs.REPO_OWNER }}
REPO_NAME: ${{ inputs.REPO_NAME }}
LABEL_NAME: ${{ inputs.LABEL_NAME }}
TARGET_BRANCH: ${{ inputs.TARGET_BRANCH }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
repository: ${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}
ref: main
ref: ${{ env.TARGET_BRANCH }}
token: ${{ secrets.GH_ADMIN_TOKEN }}
- name: Create and Checkout new Branch
run: git checkout -b chore/update-cwa-parent-${{ env.APP_VERSION }}
Expand All @@ -55,7 +59,7 @@ jobs:
repo: process.env.REPO_NAME,
title: 'Chore: Update CWA-Parent to ' + process.env.APP_VERSION,
head: 'chore/update-cwa-parent-' + process.env.APP_VERSION,
base: 'main',
base: process.env.TARGET_BRANCH,
body: `### Update the parent pom (cwa-parent) to the last released version.
This PR will update several dependencies within this project.
Expand Down

0 comments on commit 39a5318

Please sign in to comment.