Skip to content

add localRegistry flag to iam-auth presubmits (#694) #184

add localRegistry flag to iam-auth presubmits (#694)

add localRegistry flag to iam-auth presubmits (#694) #184

name: builder-baseimage-pr-notifier

Check failure on line 1 in .github/workflows/builder-baseimage-pr-notifier.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/builder-baseimage-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 builder-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 }}