Skip to content

Commit

Permalink
Parse regex with path
Browse files Browse the repository at this point in the history
  • Loading branch information
jaisnan committed Jul 26, 2024
1 parent 30d39c4 commit 1da9134
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/update-subtree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ jobs:
- name: Read date from rust-toolchain.toml
working-directory: kani
run: |
TOOLCHAIN_DATE=$(grep 'channel.*=.*"nightly-' rust-toolchain.toml | sed -E 's/.*nightly-([0-9-]+).*/\1/')
TOOLCHAIN_DATE=$(grep 'channel.*=.*"nightly-' ./rust-toolchain.toml | sed -E 's/.*nightly-([0-9-]+).*/\1/')
if [ -z "$TOOLCHAIN_DATE" ]; then
echo "Error: Could not extract date from rust-toolchain file."
exit 1
fi
echo "toolchain_date=$TOOLCHAIN_DATE" >> $GITHUB_OUTPUT
- name: Build `Kani`
Expand Down

0 comments on commit 1da9134

Please sign in to comment.