diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6689c72..2533920 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,12 +6,9 @@ name: CI on: # Triggers the workflow on push or pull request events but only for the main branch push: - branches-ignore: - - 'hotfix/**' + branches: [ main ] pull_request: - branches-ignore: - - 'hotfix/**' - + branches: [ main ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -23,6 +20,7 @@ jobs: runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job + if: ${{ github.ref != 'refs/heads/hotfix/**' }} steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3