Skip to content

Commit

Permalink
GHA: Create new metarepo branch when it does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rj1k committed Jan 24, 2024
1 parent e456dfd commit dec8678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd-libs-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
steps:
- name: Checkout metadatarepo
uses: actions/checkout@v4
continue-on-error: false
continue-on-error: true
id: metabranch
with:
repository: ${{ inputs.TARGET_REPO }}
Expand All @@ -84,7 +84,7 @@ jobs:
token: ${{ secrets.GH_BOT_DEPLOY_TOKEN || github.token }}

- name: Create remote
continue-on-error: true
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 }}
Expand Down

0 comments on commit dec8678

Please sign in to comment.