This repository was archived by the owner on Oct 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
add update_dependencies job #125
Merged
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9ee93f3
add update_dependencies job
sensuikan1973 b680225
Merge branch 'master' into cron_update_pacakges
sensuikan1973 bf39cb8
fix
sensuikan1973 817d745
fix token
sensuikan1973 d471ccc
fix token
sensuikan1973 8dec8a2
動作確認用の trigger を削除
sensuikan1973 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
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Update_Dependencies | ||
|
||
on: | ||
push: | ||
branches: | ||
- cron_update_pacakges | ||
schedule: | ||
- cron: 0 15 * * * | ||
|
||
jobs: | ||
update_dependencies: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
ref: master | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: 'beta' | ||
|
||
# See: https://pub.dev/packages/pubspec_update | ||
# 公式で yarn upgrade --latest 相当のことができるコマンドが用意されてないので、サードパーティの package を使う | ||
- run: pub global activate pubspec_update | ||
- run: pub global run pubspec_update:pubspec-update --force # See: https://dart.dev/tools/pub/cmd/pub-global#running-a-script-using-pub-global-run | ||
- name: edit pubspec.yaml | ||
run: | | ||
# NOTE: pubspec_update は「^」で管理するため。本当は package に PR 送るのが望ましい。 | ||
sed -i -e 's/\^//' pubspec.yaml | ||
- name: create PR | ||
uses: peter-evans/create-pull-request@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }} | ||
with: | ||
commit-message: '[Scheduled] update dependencies' | ||
title: '[Scheduled] update dependencies' | ||
body: | | ||
Auto-generated by [create-pull-request][1] | ||
|
||
[1]: https://github.com/peter-evans/create-pull-request | ||
branch: cron_update_dependencies | ||
base: master |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See: peter-evans/create-pull-request#48 (comment)