Skip to content

Check Outdated

Check Outdated #99

Workflow file for this run

name: Check Outdated
on:
schedule:
- cron: "0 7 * * *"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
outdated:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Set up Just
uses: extractions/setup-just@v1
- name: Check outdated
run: just outdated | tee outdated.txt
# Loads from text file, escapes newlines and quotes and build message
- name: Build Message
id: outdated
run: |
TABLE="$(cat outdated.txt)"
MESSAGE="Stratus outdated crates:\n\n```${TABLE}```"
echo "MESSAGE_JSON=$(echo -n "${MESSAGE}" | jq -aRs .)" >> $GITHUB_ENV
- name: Notify Slack
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"text": ${{ env.MESSAGE_JSON }}
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.STRATUS_SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK