Skip to content

Check Outdated

Check Outdated #92

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
- name: Escape new lines
id: outdated
run: |
TABLE="$(cat outdated.txt)"
TABLE="$(echo "$TABLE" | sed -z 's/\n/\\n/g')"
echo "table=$TABLE" >> $GITHUB_OUTPUT
- name: Notify Slack
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"text": "Stratus outdated crates:\n\n```${{ steps.outdated.outputs.table }}```",
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.STRATUS_SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK