Skip to content

Commit

Permalink
Fix update-deps workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoli authored Mar 1, 2021
1 parent c7779e7 commit 87cf7ac
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/update-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:

- name: Update dependencies
run: |
# Update the rustc version
NIGHTLY_VERSION="nightly-$(
curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/rustc-dev
)"
Expand All @@ -29,14 +28,12 @@ jobs:
UPDATE_NUMBER=$(( $(date +%m) * 2 + ($(date +%d) / 15) - 2 ))
DEVELOPER="${DEVELOPERS[ $UPDATE_NUMBER % ${#DEVELOPERS[@]} ]}"
echo "The assigned developer is $DEVELOPER"
OUTDATED_DEPENDENCIES="$(cargo outdated --root-deps-only --workspace)"
echo "NIGHTLY_VERSION=$NIGHTLY_VERSION" >> $GITHUB_ENV
echo "DEVELOPER=$DEVELOPER" >> $GITHUB_ENV
# Find outdated dependencies
echo "OUTDATED_DEPENDENCIES=<<EOF" >> $GITHUB_ENV
cargo outdated --root-deps-only --workspace >> $GITHUB_ENV
echo "OUTDATED_DEPENDENCIES<<EOF" >> $GITHUB_ENV
echo "$OUTDATED_DEPENDENCIES" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
# Debug
cat $GITHUB_ENV
- name: Open a pull request
uses: peter-evans/create-pull-request@v3
Expand Down

0 comments on commit 87cf7ac

Please sign in to comment.