Skip to content

Commit

Permalink
fix commit_artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
rinsuki committed Aug 31, 2023
1 parent 9967bf9 commit cf3495d
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,21 @@ jobs:
if not os.path.exists(f.replace(SRC_DIR, DEST_DIR)):
raise Exception("New file (need to generate .meta): " + f.replace(SRC_DIR, DEST_DIR))
os.rename(f, f.replace(SRC_DIR, DEST_DIR))
- run: |
- name: Create new branch
if: github.event.inputs.commit_artifacts == 'another_branch'
run: |
git checkout -b "gha/$(git rev-parse --abbrev-ref HEAD)"
- name: Commit
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add Assets/Plugins/UnityOpus/Plugins
git commit -m 'Update binaries'
- if: github.event.inputs.commit_artifacts == 'another_branch'
- name: Push (Force)
if: github.event.inputs.commit_artifacts == 'another_branch'
run: |
git checkout -b "gha/$(git rev-parse --abbrev-ref HEAD)"
git push -f
- run: git push
git push -f origin "$(git rev-parse --abbrev-ref HEAD)"
- name: Push
if: github.event.inputs.commit_artifacts == 'direct'
run: |
git push origin "$(git rev-parse --abbrev-ref HEAD)"

0 comments on commit cf3495d

Please sign in to comment.