Skip to content

Check Outdated

Check Outdated #101

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)"
echo "table=$(echo "$TABLE" | awk '{printf "%s\\n ", $0}' -)" >> $GITHUB_OUTPUT
- name: Notify Slack
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "mrkdwn",
"text": "Stratus outdated dependencies"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "```${{ steps.outdated.outputs.table }}```"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.STRATUS_SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK