From bb77acf1be1901b0134af0c7090795cdd0eeaf5d Mon Sep 17 00:00:00 2001 From: Maksim Stepanov <17935127+delatrie@users.noreply.github.com> Date: Tue, 12 Mar 2024 01:42:44 +0700 Subject: [PATCH 1/2] Add run-name to release workflow --- .github/workflows/release.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 919cedb5..8a850832 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,5 @@ name: release allure python +run-name: Release ${{ github.ref_name }} by ${{ github.actor }} on: release: From bef0e728cdccdc9a72b13cfc26c7a676ca38bc7e Mon Sep 17 00:00:00 2001 From: Maksim Stepanov <17935127+delatrie@users.noreply.github.com> Date: Tue, 12 Mar 2024 17:49:19 +0700 Subject: [PATCH 2/2] Fix build CI - conditions on pytest-changes - conditions of the "commons" job --- .github/workflows/build.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fb0ce63d..ece3d161 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -62,6 +62,8 @@ jobs: commons: name: Build commons runs-on: ubuntu-latest + needs: [pytest-changes, other-changes] + if: ${{ needs.pytest-changes.outputs.changed == 'true' || needs.other-changes.outputs.packages != '[]' }} steps: - uses: actions/checkout@v4 @@ -82,7 +84,7 @@ jobs: name: Static check runs-on: ubuntu-latest needs: [commons, pytest-changes, other-changes] - if: ${{ needs.pytest-changes.outputs.changed || needs.other-changes.outputs.packages != '[]' }} + if: ${{ needs.pytest-changes.outputs.changed == 'true' || needs.other-changes.outputs.packages != '[]' }} steps: - uses: actions/checkout@v4 @@ -101,7 +103,7 @@ jobs: name: Test allure-pytest runs-on: ubuntu-latest needs: [commons, pytest-changes] - if: ${{ needs.pytest-changes.outputs.changed }} + if: ${{ needs.pytest-changes.outputs.changed == 'true' }} strategy: matrix: python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]