Skip to content

Commit

Permalink
build only on main and PRs (#47)
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 5e12bd3 commit 0e54d2a
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 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 @@ -10,7 +15,7 @@ jobs:
contents: write
packages: read
env:
PKGFORGE_STATEFILE: /tmp/pkgforge
PKGFORGE_STATEFILE: "/tmp/pkgforge"
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -22,10 +27,10 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
run: make release
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: "${{ github.token }}"
- 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 0e54d2a

Please sign in to comment.