Skip to content

[PR BOT] Update base image in tag file(s) (#1876) #854

[PR BOT] Update base image in tag file(s) (#1876)

[PR BOT] Update base image in tag file(s) (#1876) #854

name: baseimage-pr-notifier

Check failure on line 1 in .github/workflows/base-image-pr-notifier.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/base-image-pr-notifier.yml

Invalid workflow file

(Line: 20, Col: 9): 'env' is already defined
on:
pull_request_target:
types: [opened]
jobs:
baseimage-pr-notifier:
runs-on: ubuntu-latest
steps:
- name: Check PR title and notify Slack
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
if [[ "$PR_TITLE" == *"Update base image"* ]]; then
curl -X POST $SLACK_WEBHOOK
echo "Base image update detected - Slack notification sent"
else
echo "Not a base image update PR - Skipping notification"
fi
exit 0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}