-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve 'update crates' GH workflow.
- Loading branch information
Showing
3 changed files
with
31 additions
and
45 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Update crates versions | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
on: | ||
schedule: | ||
# Every Sunday at 00:00 | ||
- cron: '0 0 * * 0' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
updateversions: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rust:1.57.0 | ||
steps: | ||
- name: Check out the code | ||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 | ||
with: | ||
fetch-depth: 1 | ||
ref: main | ||
- name: Retrieve newest versions of dependencies | ||
run: ./bin/update-crates-versions.sh | ||
- name: Create pull request | ||
run: | | ||
git checkout -b update-crates-versions | ||
git add local-registry/Cargo.toml | ||
git commit -m "Update crates versions" | ||
gh pr create --title "Update crates versions" --body "This is an automated pull request" |
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