fix(action): Add inputs

This commit is contained in:
Jan Gleytenhoover 2024-08-25 18:07:43 +02:00
parent 959885b63c
commit f7ba741940
Signed by: jank
GPG Key ID: 5269D64BE8F4B6FB

@ -1,5 +1,12 @@
name: "Semantic Release" name: "Semantic Release"
description: "Automatically creates semantic releases" description: "Automatically creates semantic releases"
inputs:
GITHUB_TOKEN:
description: "Github token"
required: true
GITEA_TOKEN:
description: "Gitea token"
required: true
runs: runs:
using: "composite" using: "composite"
@ -18,7 +25,7 @@ runs:
run: npm audit signatures run: npm audit signatures
- name: Release - name: Release
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEA_TOKEN: ${{ inputs.GITEA_TOKEN }}
run: npx semantic-release run: npx semantic-release