Skip to content

Commit

Permalink
Update rust workflow text
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdivine committed Nov 17, 2023
1 parent 4aebe0c commit 16a9eee
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/update-rust.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# A GitHub Actions workflow that regularly checks for new Rust toolchain release
# and creates a PR on new versions.
name: Rust Update
name: Update rust
on:
schedule:
# check for new rust versions weekly
Expand Down Expand Up @@ -36,6 +36,7 @@ jobs:
fi
echo "latest rust version '$latest_rust_version'"
echo "version=$latest_rust_version" >> "$GITHUB_OUTPUT"
if [ "$current_rust_version" != "$latest_rust_version" ]
then
Expand All @@ -44,7 +45,6 @@ jobs:
echo "updated=1" >> "$GITHUB_OUTPUT"
else
echo "updated=0" >> "$GITHUB_OUTPUT"
echo "version=$latest_rust_version" >> "$GITHUB_OUTPUT"
fi
cat ./rust-toolchain.toml
Expand All @@ -69,9 +69,19 @@ jobs:
branch-suffix: timestamp
delete-branch: true
title: 'Update rust version to ${{ steps.update.outputs.version }}'
# Since the this is a scheduled job, a failure won't be shown on any
# PR status. To notify the team, we send a message to our Slack channel on failure.
body: |
# Motivation
A new verion of Rust is available.
# Automated changes
* Update Rust version.
# Manual changes
[ ] Fix clippy lints (if necessary)
[ ] Write a changelog entry.
- name: Notify Slack on failure
# Since the this is a scheduled job, a failure won't be shown on any
# PR status. To notify the team, we send a message to our Slack channel on failure.
uses: dfinity/internet-identity/.github/actions/slack@release-2023-08-28
if: ${{ failure() }}
with:
Expand Down

0 comments on commit 16a9eee

Please sign in to comment.