-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(UX-1297): Add both round and sharp icons to ZDS Android (#58)
ci :Update copy script to fail gracefully --------- Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
c96c346
commit a80f61f
Showing
2 changed files
with
5 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,7 @@ jobs: | |
repository: ${{ inputs.repo }} | ||
token: ${{ secrets.PAT }} | ||
ref: ${{ inputs.branch }} | ||
fetch-depth: 0 | ||
|
||
- name: Checkout destination repo (Branch doesn't exist) | ||
uses: actions/checkout@v4 | ||
|
@@ -62,6 +63,7 @@ jobs: | |
path: "destination" | ||
repository: ${{ inputs.repo }} | ||
token: ${{ secrets.PAT }} | ||
fetch-depth: 0 | ||
|
||
- name: Create branch in destination repo | ||
if: ${{ steps.check_branch.outputs.branch_exists == 0 }} | ||
|
@@ -82,22 +84,13 @@ jobs: | |
- name: Copy files | ||
run: cp -r source/${{ inputs.source_dir }}/* destination/${{ inputs.destination_dir }} | ||
|
||
- name: Stage destination changes | ||
- name: Stage / Push destination changes | ||
continue-on-error: true | ||
run: | | ||
cd destination | ||
git config --global user.name "zeta-icons-bot" | ||
git config --global user.email "[email protected]" | ||
git add -A | ||
- name: Check if there are changes | ||
id: changed | ||
run: | | ||
cd destination | ||
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT | ||
- name: Commit and push changes | ||
if: steps.changed.outputs.changed == 'true' | ||
run: | | ||
git commit -m "deps(automated): ${{inputs.commit_msg}} ${{ steps.date.outputs.date }}" | ||
git push --set-upstream origin ${{inputs.branch}} -f | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters