Skip to content

Commit 5549b36

Browse files
author
Cynthia Jiang
committed
test
1 parent cdb3077 commit 5549b36

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/package.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,22 @@ jobs:
104104
run: |
105105
python build_package.py --zip_dir=built_artifect
106106
107-
- name: Push branch if there are changes
107+
- name: Commit Changes if there is any
108+
run: |
109+
if ! git update-index --refresh; then
110+
git config user.email "[email protected]"
111+
git config user.name "firebase-workflow-trigger-bot"
112+
git config core.commentChar "%" # so we can use # in git commit messages
113+
git commit -a -m "Update Guids ID"
114+
115+
# Show changes in git log
116+
git diff
117+
# Push branch
118+
git push --set-upstream origin "${NEW_BRANCH}"
119+
fi
120+
121+
- name: Create PR if there is None
122+
if: github.event.inputs.working_branch == 'None'
108123
id: push-branch
109124
run: |
110125
if ! git update-index --refresh; then

0 commit comments

Comments
 (0)