This repository was archived by the owner on Jun 5, 2026. It is now read-only.
Check Pebble dep #341
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check Pebble dep | |
| on: | |
| schedule: | |
| - cron: '0 8 * * *' # Every day at 8:00 UTC | |
| workflow_dispatch: | |
| jobs: | |
| check-pebble-dep: | |
| if: github.repository == 'cockroachdb/cockroach' | |
| runs-on: ubuntu-latest | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check Pebble deps | |
| id: run_script | |
| run: | | |
| EXIT_CODE=0 | |
| OUTPUT=$(scripts/check-pebble-dep.sh 2>&1) || EXIT_CODE=$? | |
| echo "$OUTPUT" | |
| # Set output as a multi-line string. | |
| echo "output<<EOF" >> $GITHUB_OUTPUT | |
| echo "$OUTPUT" >> $GITHUB_OUTPUT | |
| echo "EOF" >> $GITHUB_OUTPUT | |
| # Set exit code. | |
| echo "exitcode=$EXIT_CODE" >> $GITHUB_OUTPUT | |
| - name: Notify Slack on failure | |
| if: steps.run_script.outputs.exitcode != '0' | |
| uses: slackapi/slack-github-action@v2.1.0 | |
| with: | |
| errors: true | |
| method: chat.postMessage | |
| token: ${{ secrets.PEBBLE_SLACK_BOT_TOKEN }} | |
| # The channel ID is for #storage-notifications. | |
| payload: | | |
| { | |
| "channel": "C08JE13CM9S", | |
| "text": ${{ toJson(steps.run_script.outputs.output) }} | |
| } |