.github/workflows/ruby.yml in aws_secrets_loader-0.2.7 vs .github/workflows/ruby.yml in aws_secrets_loader-0.2.8
- old
+ new
@@ -13,13 +13,11 @@
pull_request:
branches: [ main ]
jobs:
test:
-
runs-on: ubuntu-latest
-
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
@@ -35,8 +33,9 @@
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- name: Run tests
run: bundle exec rspec
- name: Publish code coverage
+ if: github.ref_name == 'main'
run: |
export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}"
./cc-test-reporter after-build -r ${{secrets.CC_TEST_REPORTER_ID}}