Skip to content

Commit

Permalink
Merge pull request #207 from s3rj1k/meta_branch_name
Browse files Browse the repository at this point in the history
Use source branch name in metarepo branch name.
  • Loading branch information
andywolk authored Jan 25, 2024
2 parents f077c8b + 1e98918 commit cf5a219
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/cd-libs-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
# default: ''
# description: File full-path
# type: string
SOURCE_BRANCH:
required: true
default: ''
description: The source branch name.
type: string
TARGET_REPO:
required: true
default: ''
Expand Down Expand Up @@ -76,7 +81,7 @@ jobs:
id: metabranch
with:
repository: ${{ inputs.TARGET_REPO }}
ref: ${{ inputs.LIB_NAME }}/${{ inputs.TARGET_OS }}/${{ inputs.TARGET_PLATFORM }}
ref: ${{ inputs.LIB_NAME }}/${{ inputs.SOURCE_BRANCH }}/${{ inputs.TARGET_OS }}/${{ inputs.TARGET_PLATFORM }}
# ssh-key: ${{ secrets.GH_BOT_DEPLOY_KEY }}
token: ${{ secrets.GH_BOT_DEPLOY_TOKEN || github.token }}

Expand All @@ -93,8 +98,8 @@ jobs:
- name: Create remote
if: steps.metabranch.outcome != 'success'
run: |
git checkout -b ${{ inputs.LIB_NAME }}/${{ inputs.TARGET_OS }}/${{ inputs.TARGET_PLATFORM }}
git push --set-upstream origin ${{ inputs.LIB_NAME }}/${{ inputs.TARGET_OS }}/${{ inputs.TARGET_PLATFORM }}
git checkout -b ${{ inputs.LIB_NAME }}/${{ inputs.SOURCE_BRANCH }}/${{ inputs.TARGET_OS }}/${{ inputs.TARGET_PLATFORM }}
git push --set-upstream origin ${{ inputs.LIB_NAME }}/${{ inputs.SOURCE_BRANCH }}/${{ inputs.TARGET_OS }}/${{ inputs.TARGET_PLATFORM }}
- name: Download Artifacts
uses: actions/download-artifact@v4
Expand Down

0 comments on commit cf5a219

Please sign in to comment.