Skip to content

Commit

Permalink
Update Cargo.lock (#4124)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #4124

Test Plan:
This diff also adds a github action that will automatically create PRs with chagnes to Cargo.lock.

Example PR: alunyov#2

Example Run: https://github.com/alunyov/relay/actions/runs/3463204808/jobs/5783112977

Reviewed By: voideanvalue

Differential Revision: D41266562

Pulled By: alunyov

fbshipit-source-id: 60efca734e1808fe1223e151f63c6e0eb65f862b
  • Loading branch information
alunyov authored and facebook-github-bot committed Nov 14, 2022
1 parent a4c3c91 commit bd04254
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
# add --locked back when we have a better way to ensure it's up to date
args: --manifest-path=compiler/Cargo.toml
args: --manifest-path=compiler/Cargo.toml --locked
- name: "Build compiler test project"
run: cargo run --manifest-path=../crates/relay-bin/Cargo.toml
working-directory: ./compiler/test-project
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/update-cargo-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

name: Update Cargo.lock
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

env:
CARGO_TERM_COLOR: always

jobs:
update-cargo-lock:
name: Update Cargo.lock file
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.64.0
override: true
- name: "cargo check"
run: cargo check
working-directory: ./compiler/
- name: pull-request
uses: peter-evans/create-pull-request@v4
with:
title: "Update Cargo.lock"
delete-branch: true
5 changes: 3 additions & 2 deletions compiler/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bd04254

Please sign in to comment.