From b9770b7a9feb0027524675e697798c627b26703c Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Wed, 11 Jun 2025 19:06:58 +0200 Subject: [PATCH 1/2] Prevent PR jobs from running in the main branch --- .gitea/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index c83664b..c00cf0f 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -65,6 +65,7 @@ jobs: if: failure() run: docker ps --filter network=$JOB_CONTAINER_NAME-$GITHUB_JOB-network --filter name=$JOB_CONTAINER_NAME-* --format "{{.ID}}" | xargs docker rm -f rubocop: + if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -74,6 +75,7 @@ jobs: - run: bundle install - run: bundle exec rubocop --force-exclusion --parallel check-licenses: + if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -85,6 +87,7 @@ jobs: - name: Run license finder run: license_finder copyright_notice: + if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 -- 2.47.1 From f3088470da7a13e18bcec927e65e6b375e6e7559 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Wed, 11 Jun 2025 19:09:48 +0200 Subject: [PATCH 2/2] Use latest version of v1 ruby-setup --- .gitea/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index c00cf0f..380d3ca 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -23,7 +23,7 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.head_ref }} # Checkout the actual branch, not the result if merged into the base - - uses: ruby/setup-ruby@v1.220.0 + - uses: ruby/setup-ruby@v1 - run: bundle install - &postgres_wait name: Wait until Postgres is ready to accept connections @@ -71,7 +71,7 @@ jobs: - uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} - - uses: ruby/setup-ruby@v1.220.0 + - uses: ruby/setup-ruby@v1 - run: bundle install - run: bundle exec rubocop --force-exclusion --parallel check-licenses: @@ -81,7 +81,7 @@ jobs: - uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} - - uses: ruby/setup-ruby@v1.220.0 + - uses: ruby/setup-ruby@v1 - name: Install project dependencies run: bundle install --jobs `getconf _NPROCESSORS_ONLN` - name: Run license finder -- 2.47.1