Firefox iOS Security Monitor Rotation #13
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: Firefox iOS Security Monitor Rotation | |
| on: | |
| schedule: | |
| - cron: '0 9 * * 1-5' # Every weekday at 9 AM UTC | |
| workflow_dispatch: | |
| jobs: | |
| notify: | |
| name: Pick security monitor and notify Slack | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| cache: 'pip' | |
| - name: Pick name from schedule | |
| id: pick | |
| run: | | |
| name=$(python slack-reminders/firefox-ios-security-monitor.py) | |
| echo "security_monitor_name=$name" >> $GITHUB_OUTPUT | |
| echo "date=$(date +'%B %d, %Y')" >> $GITHUB_OUTPUT | |
| - name: Print current assignee if no rotation today | |
| if: steps.pick.outputs.security_monitor_name == '' | |
| run: | | |
| current=$(python slack-reminders/firefox-ios-security-monitor.py --current) | |
| echo "No rotation today. Current security monitor: $current" | |
| - name: Send Slack notification if there is a new assignee starting today | |
| if: steps.pick.outputs.security_monitor_name != '' | |
| env: | |
| security_monitor_name: ${{ steps.pick.outputs.security_monitor_name }} | |
| date: ${{ steps.pick.outputs.date }} | |
| uses: slackapi/slack-github-action@v3.0.1 | |
| with: | |
| payload-file-path: slack-reminders/ios-security-rotation.json | |
| payload-templated: true | |
| webhook: ${{ secrets.SLACK_WEBHOOK_FIREFOX_IOS_DEV }} | |
| webhook-type: incoming-webhook |