Skip to content

Fixing new release workflow #4

Fixing new release workflow

Fixing new release workflow #4

Workflow file for this run

name: "Release"
on:
workflow_call:
inputs:
branch_client_python:
type: string
default: 'main'
required: true
previous_version:
type: string
default: ''
required: true
new_version:
type: string
default: ''
required: true
secrets:
GITHUB_TOKEN:

Check failure on line 19 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: true
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
working-directory: client-python
steps:
- name: checkout repo content
uses: actions/checkout@v4
with:
repository: OpenBAS-Platform/client-python
ref: ${{ inputs.branch_client_python }}
- name: setup python
uses: actions/setup-python@v5
with:
python-version: 3.8 #install the python needed
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f scripts/requirements.txt ]; then pip install -r scripts/requirements.txt; fi
- name: execute py script # run file
run: |
python scripts/release.py ${{ inputs.branch_client_python }} ${{ inputs.previous_version }} ${{ inputs.new_version }} ${{ secrets.GITHUB_TOKEN }}