Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
e61fc2f
Add placeholder workflow for updating dependencies.
jonsimantov Sep 8, 2021
916ddf0
Add placeholder job to placeholder workflow.
jonsimantov Sep 8, 2021
7c7d516
Fix format.
jonsimantov Sep 8, 2021
54a6b94
Fix format again
jonsimantov Sep 8, 2021
32ee75d
Check out the repo and create a branch.
jonsimantov Sep 8, 2021
f1ac55c
Update iOS and Android dependencies, and (don't yet) push.
jonsimantov Sep 8, 2021
e3314ec
Set up Python prereqs.
jonsimantov Sep 8, 2021
5de7981
Install prereqs
jonsimantov Sep 8, 2021
92f1746
Install additional prereq
jonsimantov Sep 8, 2021
d3f428a
Add script for creating PR.
jonsimantov Sep 8, 2021
08a6323
Create PR and trigger tests on it.
jonsimantov Sep 8, 2021
311152a
Fix format
jonsimantov Sep 8, 2021
fc3eafd
Fix quotes.
jonsimantov Sep 8, 2021
8d914e2
Streamline workflow and fix conditionals.
jonsimantov Sep 8, 2021
63c06c5
Clean up logging, and actually commit this time.
jonsimantov Sep 8, 2021
b371054
Add timestamp to branch name.
jonsimantov Sep 8, 2021
7f0a0c9
Set commit email and CLA=yes.
jonsimantov Sep 8, 2021
30bf314
Remove 'base' from req flags
jonsimantov Sep 8, 2021
af96f69
Capture pull request number that was created.
jonsimantov Sep 8, 2021
2aa5ba9
Allow integration tests triggered by firebase-workflow-trigger.
jonsimantov Sep 8, 2021
9b79d38
Remove unneeded check.
jonsimantov Sep 8, 2021
45b5da6
Remove cla: yes label; this will be fixed via a different method.
jonsimantov Sep 8, 2021
e59a583
Merge remote-tracking branch 'origin/main' into feature/auto-update-d…
jonsimantov Sep 8, 2021
91b865a
Fix lint workflow issue.
jonsimantov Sep 8, 2021
e23a2d2
Change commit to use bot address.
jonsimantov Sep 8, 2021
d1ca3e1
Change timestamps to Pacific time.
jonsimantov Sep 9, 2021
e89998c
Undo time zone change.
jonsimantov Sep 9, 2021
ec4be1c
Fix email address.
jonsimantov Sep 9, 2021
9ad3edb
Change commit name to firebase-workflow-trigger-bot
jonsimantov Sep 9, 2021
a15dbcf
Make sure to use original ref of workflow for scripts.
jonsimantov Sep 9, 2021
9ac08d1
Use the sha instead of the ref.
jonsimantov Sep 9, 2021
cc9a914
Factor out commit title and body.
jonsimantov Sep 9, 2021
aaca011
Add logging to update script.
jonsimantov Sep 9, 2021
068be4e
Update log file
jonsimantov Sep 9, 2021
841efd6
Add verbose log of versions that were changed.
jonsimantov Sep 9, 2021
1c1dcef
Fix bash error.
jonsimantov Sep 9, 2021
783f6af
Fix log message.
jonsimantov Sep 9, 2021
54cfa04
Fix logfile.
jonsimantov Sep 9, 2021
8819c7b
Clean up the output a bit.
jonsimantov Sep 9, 2021
7cd44f0
Fix spacing.
jonsimantov Sep 9, 2021
fb9c3d3
Change output format
jonsimantov Sep 9, 2021
e832511
Fix git comment.
jonsimantov Sep 9, 2021
d29db61
Fix commit log.
jonsimantov Sep 9, 2021
add6b3b
Restore Android dependencies file.
jonsimantov Sep 10, 2021
e116bb7
Fix formatting and other issues.
jonsimantov Sep 10, 2021
c3cb955
Add workflow name to comment.
jonsimantov Sep 10, 2021
2d1960c
Change "Android and iOS" PR title to just "mobile"
jonsimantov Sep 10, 2021
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Factor out commit title and body.
  • Loading branch information
jonsimantov committed Sep 9, 2021
commit cc9a914fa795b29a7f66b1e0e21416938d9d3821
8 changes: 6 additions & 2 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,13 @@ jobs:
run: |
if ! git update-index --refresh; then
date_str=$(date "+%a %b %d %Y")
commit_title="Update ${CHOSEN_DEPS} dependencies - ${date_str}"
commit_body="Automatically updated by [workflow]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID).")
git config user.email "firebase-workflow-trigger-bot@google.com"
git config user.name "firebase-workflow-trigger-bot"
git commit -a -m "Update ${CHOSEN_DEPS} dependencies - ${date_str}"
git commit -a -m "${commit_title}

${commit_body}"
echo "::set-output name=branch_pushed::1"
# Show changes in git log
git diff
Expand All @@ -96,7 +100,7 @@ jobs:
# Check out the original ref again so we have access to scripts.
git checkout ${{ github.sha }} || true
# Create pull request
pr_number=$(python scripts/gha/create_pull_request.py --token ${{ steps.generate-token.outputs.token }} --head "${NEW_BRANCH}" --base "${{ github.event.inputs.baseBranch }}" --title "Update ${CHOSEN_DEPS} dependencies - ${date_str}" --body "Automatically updated by [workflow]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID).")
pr_number=$(python scripts/gha/create_pull_request.py --token ${{ steps.generate-token.outputs.token }} --head "${NEW_BRANCH}" --base "${{ github.event.inputs.baseBranch }}" --title "${commit_title}" --body "${commit_body}"
echo "::set-output name=created_pr_number::${pr_number}"
else
echo "::warning ::No changes detected, won't create pull request."
Expand Down