Skip to content

BUILD - RAD Lab Notifications #77266

BUILD - RAD Lab Notifications

BUILD - RAD Lab Notifications #77266

Workflow file for this run

# .github/workflows/notifications.yml
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: BUILD - RAD Lab Notifications
on:
schedule:
- cron: '*/30 * * * *'
workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8 #install the python needed
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
working-directory: tools
- name: execute py script # run the notifications.py
env:
WEBHOOK: ${{ secrets.WEBHOOK }}
id: issue-notif
run: |
python notifications.py
working-directory: tools