diff --git a/.github/workflows/convert-yaml-to-json.yml b/.github/workflows/convert-yaml-to-json.yml new file mode 100644 index 0000000..e3aa32e --- /dev/null +++ b/.github/workflows/convert-yaml-to-json.yml @@ -0,0 +1,26 @@ +name: convert-yaml-to-json + +on: + [push] + # push: + # branches: ["main"] + # pull_request: + # branches: ["main"] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + cache: "pip" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run python script + run: | + python convert-yaml.py yaml_notifications json_notifications