From 605ca3affe4536fb342bed3a42aac3be94eada2a Mon Sep 17 00:00:00 2001 From: mac12m99 <10120390+mac12m99@users.noreply.github.com> Date: Fri, 23 Jul 2021 17:44:16 +0200 Subject: [PATCH] Prova aggiornamento domini su stabile --- .github/workflows/updateDomainsStable.yml | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/updateDomainsStable.yml diff --git a/.github/workflows/updateDomainsStable.yml b/.github/workflows/updateDomainsStable.yml new file mode 100644 index 00000000..5ab4d44a --- /dev/null +++ b/.github/workflows/updateDomainsStable.yml @@ -0,0 +1,32 @@ +name: Update channel domains +on: + workflow_dispatch: + schedule: + - cron: '30 17 * * *' + +jobs: + update: + runs-on: ubuntu-latest + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + with: + ref: stable + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: 3.7 + + - name: Install dependencies + run: pip install requests + + - name: Update domains + run: python tools/updateDomains.py + + - name: Commit & Push changes + uses: actions-js/push@master + with: + message: "Aggiornamento domini" + branch: "stable" + github_token: ${{ secrets.API_TOKEN_GITHUB }} \ No newline at end of file