Skip to content

Commit

Permalink
fix: workflow to run on dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
diogoncalves committed Nov 21, 2024
1 parent 24295d3 commit f228d47
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/upload-pypi-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,24 @@ on:
- main
paths:
- "libs/core/**"
workflow_dispatch:
inputs:
security-token:
description: 'Security token to trigger this workflow'
required: true
type: string

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check security token
run: |
if [[ "${{ github.event.inputs.security-token }}" != "${{ secrets.SECURITY_TOKEN }}" ]]; then
echo "Unauthorized access attempt detected."
exit 1
fi
# Checkout the code
- name: Checkout code
uses: actions/checkout@v2
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/upload-pypi-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ on:
- main
paths:
- "libs/proxy/**"
workflow_dispatch:
inputs:
security-token:
description: 'Security token to trigger this workflow'
required: true
type: string

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check security token
run: |
if [[ "${{ github.event.inputs.security-token }}" != "${{ secrets.SECURITY_TOKEN }}" ]]; then
echo "Unauthorized access attempt detected."
exit 1
fi
# Checkout the code
- name: Checkout code
uses: actions/checkout@v2
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/upload-pypi-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ on:
- main
paths:
- "libs/llmstudio/**"
workflow_dispatch:
inputs:
security-token:
description: 'Security token to trigger this workflow'
required: true
type: string

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check security token
run: |
if [[ "${{ github.event.inputs.security-token }}" != "${{ secrets.SECURITY_TOKEN }}" ]]; then
echo "Unauthorized access attempt detected."
exit 1
fi
# Checkout the code
- name: Checkout code
uses: actions/checkout@v2
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/upload-pypi-tracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ on:
- main
paths:
- "libs/tracker/**"
workflow_dispatch:
inputs:
security-token:
description: 'Security token to trigger this workflow'
required: true
type: string

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check security token
run: |
if [[ "${{ github.event.inputs.security-token }}" != "${{ secrets.SECURITY_TOKEN }}" ]]; then
echo "Unauthorized access attempt detected."
exit 1
fi
# Checkout the code
- name: Checkout code
uses: actions/checkout@v2
Expand Down

0 comments on commit f228d47

Please sign in to comment.