Skip to content

Commit

Permalink
Add branch constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
mawandm committed Apr 21, 2024
1 parent d38306b commit fad5721
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
package_api:
name: Package ${{ github.event.inputs.tag }} API
runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main'
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand All @@ -43,7 +43,7 @@ jobs:
package_frontend:
name: Package ${{ github.event.inputs.tag }} frontend
runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main'
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -71,8 +71,7 @@ jobs:
package_rag_cpu:
name: Package ${{ github.event.inputs.tag }}-${{ github.event.inputs.core }} RAG Engine
runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
if: "${{ github.event.inputs.core == 'cpu' }}"
if: github.ref == 'refs/heads/22-parameterise-cuda-cpu-rag-images' && "${{ github.event.inputs.core == 'cpu' }}"
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand All @@ -98,8 +97,7 @@ jobs:
package_rag_cuda:
name: Package ${{ github.event.inputs.tag }}-${{ github.event.inputs.core }} RAG Engine
runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
if: "${{ github.event.inputs.core == 'cuda' }}"
if: github.ref == 'refs/heads/22-parameterise-cuda-cpu-rag-images' && "${{ github.event.inputs.core == 'cuda' }}"
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand Down

0 comments on commit fad5721

Please sign in to comment.