Skip to content

Commit

Permalink
Merge pull request #94 from mbeddr/feature/github-workflow-on-pr
Browse files Browse the repository at this point in the history
Reduce triggers of main GitHub workflow
  • Loading branch information
sergej-koscejev authored Jul 11, 2024
2 parents 76ef124 + 25a55c7 commit 19f4a32
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@

name: FASTEN_CI

on: [push, pull_request]
on:
push:
branches:
- master
- 'maintenance/*'
pull_request:

env:
MPS_VER: "2022.2"
Expand Down Expand Up @@ -137,7 +142,9 @@ jobs:
# gradle-executable: /home/runner/work/mbeddr.formal/mbeddr.formal/gradlew
- name: Build and Publish FASTEN Assurance to Github Maven Packages
uses: gradle/[email protected]
with:
# Only publish on push (to maintenance or master)
if: github.event_name == 'push'
with:
arguments: publishFASTENSafetyLanguagesPublicationToGitHubPackagesRepository -Pgpr.user=${{github.actor}} -Pgpr.token=${{ secrets.GITHUB_TOKEN }}
wrapper-cache-enabled: true
dependencies-cache-enabled: true
Expand Down

0 comments on commit 19f4a32

Please sign in to comment.