Skip to content

Commit 44cfa60

Browse files
committed
Fixing new release workflow
1 parent 480d4d3 commit 44cfa60

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/release.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,25 @@ on:
1515
type: string
1616
default: ''
1717
required: true
18+
secrets:
19+
GITHUB_TOKEN:
20+
required: true
1821

1922
jobs:
2023
release:
2124
name: Release
2225
runs-on: ubuntu-latest
26+
permissions:
27+
contents: write
28+
defaults:
29+
run:
30+
working-directory: client-python
2331
steps:
2432
- name: checkout repo content
2533
uses: actions/checkout@v4
34+
with:
35+
repository: OpenBAS-Platform/client-python
36+
ref: ${{ inputs.branch_client_python }}
2637
- name: setup python
2738
uses: actions/setup-python@v5
2839
with:
@@ -33,4 +44,4 @@ jobs:
3344
if [ -f scripts/requirements.txt ]; then pip install -r scripts/requirements.txt; fi
3445
- name: execute py script # run file
3546
run: |
36-
python scripts/release.py ${{ github.event.inputs.branch_client_python }} ${{ github.event.inputs.previous_version }} ${{ github.event.inputs.new_version }} ${{ github.token }}
47+
python scripts/release.py ${{ inputs.branch_client_python }} ${{ inputs.previous_version }} ${{ inputs.new_version }} ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)