From cc756b64593e3399cfbea8396b76dd0564ca4fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Rom=C3=A1n?= Date: Tue, 9 Jan 2024 13:20:26 -0800 Subject: [PATCH] ci: use coatl-dev/workflows@v2 --- .github/workflows/ci.yml | 4 ++-- .github/workflows/pip-compile-upgrade.yml | 21 ++++++++------------- .github/workflows/pr-build.yml | 2 +- .github/workflows/pre-commit-autoupdate.yml | 19 +++++++------------ .github/workflows/publish.yml | 8 ++++---- 5 files changed, 22 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8bb8faf..bffa22d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,10 +9,10 @@ on: jobs: pre-commit: - uses: coatl-dev/workflows/.github/workflows/pre-commit.yml@coatl + uses: coatl-dev/workflows/.github/workflows/pre-commit.yml@v2 with: skip-hooks: 'pylint' pylint: needs: pre-commit - uses: coatl-dev/workflows/.github/workflows/pylint.yml@coatl + uses: coatl-dev/workflows/.github/workflows/pylint.yml@v2 diff --git a/.github/workflows/pip-compile-upgrade.yml b/.github/workflows/pip-compile-upgrade.yml index 75491fd..ba26c38 100644 --- a/.github/workflows/pip-compile-upgrade.yml +++ b/.github/workflows/pip-compile-upgrade.yml @@ -2,20 +2,15 @@ name: pip-compile-upgrade on: schedule: - - cron: '0 20 28 * *' + - cron: '0 20 14/28 * *' workflow_dispatch: jobs: pip-compile-upgrade: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: coatl-dev-pip-compile-upgrade - uses: coatl-dev/actions/pip-compile-upgrade@coatl - with: - path: requirements.txt - gh-token: ${{ secrets.COATL_BOT_GH_TOKEN }} - gpg-sign-passphrase: ${{ secrets.COATL_BOT_GPG_PASSPHRASE }} - gpg-sign-private-key: ${{ secrets.COATL_BOT_GPG_PRIVATE_KEY }} + uses: coatl-dev/workflows/.github/workflows/pip-compile-upgrade.yml@v2 + with: + path: requirements.txt + secrets: + gh-token: ${{ secrets.COATL_BOT_GH_TOKEN }} + gpg-sign-passphrase: ${{ secrets.COATL_BOT_GPG_PASSPHRASE }} + gpg-sign-private-key: ${{ secrets.COATL_BOT_GPG_PRIVATE_KEY }} diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 27d4dfe..735bc51 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -13,4 +13,4 @@ on: jobs: tox: - uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@coatl + uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@v2 diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml index 87c98f1..a9e30d7 100644 --- a/.github/workflows/pre-commit-autoupdate.yml +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -7,15 +7,10 @@ on: jobs: pre-commit-autoupdate: - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Update pre-commit hooks - uses: coatl-dev/actions/pre-commit-autoupdate@coatl - with: - gh-token: ${{ secrets.COATL_BOT_GH_TOKEN }} - gpg-sign-passphrase: ${{ secrets.COATL_BOT_GPG_PASSPHRASE }} - gpg-sign-private-key: ${{ secrets.COATL_BOT_GPG_PRIVATE_KEY }} - skip-repos: 'flake8' + uses: coatl-dev/workflows/.github/workflows/pre-commit-autoupdate.yml@v2 + with: + skip-repos: 'flake8' + secrets: + gh-token: ${{ secrets.COATL_BOT_GH_TOKEN }} + gpg-sign-passphrase: ${{ secrets.COATL_BOT_GPG_PASSPHRASE }} + gpg-sign-private-key: ${{ secrets.COATL_BOT_GPG_PRIVATE_KEY }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d03bdb1..20dff56 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,26 +7,26 @@ on: jobs: pre-commit: - uses: coatl-dev/workflows/.github/workflows/pre-commit.yml@coatl + uses: coatl-dev/workflows/.github/workflows/pre-commit.yml@v2 with: skip-hooks: 'pylint' pylint: needs: pre-commit - uses: coatl-dev/workflows/.github/workflows/pylint.yml@coatl + uses: coatl-dev/workflows/.github/workflows/pylint.yml@v2 tox: needs: - pre-commit - pylint - uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@coatl + uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@v2 pypi-publish: needs: - pre-commit - pylint - tox - uses: coatl-dev/workflows/.github/workflows/pypi-upload.yml@coatl + uses: coatl-dev/workflows/.github/workflows/pypi-upload.yml@v2 with: python-version: '2.7' secrets: