From 895d4b33a673cd5ffe1af07b11559858296ab5e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DURR?= Date: Fri, 26 Aug 2022 23:19:29 +0200 Subject: [PATCH] Going back to actions again --- .github/workflows/deploy.yml | 27 ++++++++++++++++----------- .github/workflows/unittests.yml | 2 +- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 90fdc387..3c179b3c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -44,15 +44,20 @@ jobs: poetry run ./manage.py compilemessages sudo systemctl restart uwsgi + + sentry: + runs-on: ubuntu-latest + environment: production + timeout-minutes: 30 + steps: + - uses: actions/checkout@v3 - sentry-release: - - uses: actions/checkout@v2 - - name: Create Sentry release - uses: getsentry/action-release@v1 - env: - SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} - SENTRY_ORG: ${{ secrets.SENTRY_ORG }} - SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} - SENTRY_URL: ${{ secrets.SENTRY_URL }} - with: - environment: production + - name: Sentry Release + uses: getsentry/action-release@v1.2.0 + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + SENTRY_ORG: ${{ secrets.SENTRY_ORG }} + SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} + SENTRY_URL: ${{ secrets.SENTRY_URL }} + with: + environment: production diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 70a7a00f..cd4834f3 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -19,7 +19,7 @@ jobs: uses: technote-space/get-diff-action@v6 id: git-diff with: - PATTERNS: +**/*.+(py) + PATTERNS: /**/*.py - name: Set up python if: steps.git-diff.outputs.diff