Skip to content

Commit

Permalink
build only on main and PRs (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: cultivator[bot] <343217+cultivator[bot]@users.noreply.github.com>
  • Loading branch information
akerl-cultivator[bot] and cultivator[bot] committed Jul 5, 2023
1 parent 5c2d17a commit 6126501
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
---
name: Build
on:
pull_request:
'on':
push:
branches:
- main
tags:
- "**"
pull_request_target:
jobs:
build:
name: Build
Expand All @@ -23,10 +28,10 @@ jobs:
if: github.ref_type == 'tag'
run: bundle exec rake release
env:
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
GEM_HOST_API_KEY: "${{ secrets.GEM_HOST_API_KEY }}"
- name: Post to hook-exporter
run: ./.github/exporter.sh
run: "./.github/exporter.sh"
env:
EXPORTER_TOKEN: ${{ secrets.EXPORTER_TOKEN }}
JOB_STATUS: ${{ job.status }}
if: ${{ always() }}
EXPORTER_TOKEN: "${{ secrets.EXPORTER_TOKEN }}"
JOB_STATUS: "${{ job.status }}"
if: "${{ always() }}"

0 comments on commit 6126501

Please sign in to comment.