diff --git a/.github/actions/pr_notifier/pr_notifier.py b/.github/actions/pr_notifier/pr_notifier.py new file mode 100644 index 0000000000000..8f5b0346075d7 --- /dev/null +++ b/.github/actions/pr_notifier/pr_notifier.py @@ -0,0 +1,8 @@ +import sys + +from slack_sdk import WebClient +from slack_sdk.errors import SlackApiError + +if __name__ == '__main__': + print("Hello world!") + print(sys.version) \ No newline at end of file diff --git a/.github/actions/pr_notifier/requirements.txt b/.github/actions/pr_notifier/requirements.txt new file mode 100644 index 0000000000000..5b104f1331173 --- /dev/null +++ b/.github/actions/pr_notifier/requirements.txt @@ -0,0 +1,8 @@ +# +# This file is autogenerated by pip-compile +# To update, run: +# +# pip-compile --generate-hashes tools/dependency/requirements.txt +# +slack_sdk==3.5.1 \ + --hash=sha256:8ceb46f7989d2ba1694dec8555dbda7f750b9216e453da4ad3e32a498bc9ea9a \ No newline at end of file diff --git a/.github/workflows/pr_notifier.yml b/.github/workflows/pr_notifier.yml new file mode 100644 index 0000000000000..996ff6a7e6edd --- /dev/null +++ b/.github/workflows/pr_notifier.yml @@ -0,0 +1,24 @@ +on: + pull_request: + #workflow_dispatch: + #schedule: + # - cron: '0 */4 * * *' + +jobs: + pr_notifier: + name: PR Notifier + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: '3.8' + architecture: 'x64' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r ./.github/actions/pr_notifier/requirements.txt + - name: Display Python version + run: python ./.github/actions/pr_notifier/pr_notifier.py \ No newline at end of file