From 5babe24e2d074e33c53ba21854ecc383877a9b9a Mon Sep 17 00:00:00 2001 From: Ricardo Vela Date: Mon, 26 Feb 2024 11:57:46 -0600 Subject: [PATCH 1/3] remove travis badge --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index ece9b7f..7bd7c07 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # with_transactional_lock -[![Build Status](https://travis-ci.com/Betterment/with_transactional_lock.svg?token=6b6DErRMUHX47kEoBZ3t&branch=master)](https://travis-ci.com/Betterment/with_transactional_lock) - A simple extension to ActiveRecord for performing advisory locking on MySQL and PostgreSQL. From 69b1bb832346592f7b3fd8f09341bbee0aa66e73 Mon Sep 17 00:00:00 2001 From: Ricardo Vela Date: Mon, 26 Feb 2024 12:03:55 -0600 Subject: [PATCH 2/3] remove publish related configuration in ci.yml we won't be publishing to GH Packages, so this can go --- .github/workflows/ci.yml | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0bf416..f99e423 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,17 +1,6 @@ name: CI -on: - workflow_dispatch: - inputs: - force_release: - description: 'Force a release to run using the current version' - default: false - required: true - type: boolean - push: - branches: - - master - pull_request: +on: [push, pull_request] jobs: build: @@ -61,15 +50,3 @@ jobs: env: BUNDLE_GEMFILE: ${{ matrix.gemfile }} run: bundle exec rake - publish: - needs: build - if: needs.build.result == 'success' && (github.event_name == 'push' || inputs.force_release) - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - uses: Betterment/workflows/gem_release@gem_release-v6 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - betterment_gh_packages_pat: ${{ secrets.BETTERMENT_GH_PACKAGES_PAT }} - force: ${{ toJSON(inputs.force_release) }} From 9e97cb7efb6df23b475872e5bc93175fe47e8079 Mon Sep 17 00:00:00 2001 From: Ricardo Vela Date: Mon, 26 Feb 2024 12:12:33 -0600 Subject: [PATCH 3/3] only run actions on pushes to main --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f99e423..539440e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: jobs: build: