Skip to content

Commit

Permalink
GHA: Rework Sync changes.
Browse files Browse the repository at this point in the history
Signed-off-by: s3rj1k <[email protected]>
  • Loading branch information
s3rj1k committed Jan 17, 2024
1 parent 30c4333 commit 22d0c4e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 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: true
continue-on-error: false
id: metabranch
with:
repository: ${{ inputs.TARGET_REPO }}
Expand Down Expand Up @@ -97,11 +97,9 @@ jobs:
- name: Sync changes
shell: sh
run: |
git checkout ${{ inputs.LIB_NAME }}/${{ inputs.TARGET_OS }}/${{ inputs.TARGET_PLATFORM }}
git pull
git status --porcelain && exit 0
git add metafile.txt
git status --porcelain | grep -q . || exit 0
git config --global user.email "[email protected]"
git config --global user.name "github-actions"
git commit -m "update metadata"
git push
git add -v metafile.txt
git commit --branch -m "update metadata"
git push --atomic -v

0 comments on commit 22d0c4e

Please sign in to comment.