Skip to content
This repository was archived by the owner on May 1, 2026. It is now read-only.

Commit c3e9ee5

Browse files
committed
workflows: fix GITHUB_TOKEN not accessible
1 parent 02de542 commit c3e9ee5

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/actions/release/action.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ inputs:
2424
description: "Path to the build folder"
2525
required: false
2626
default: build
27+
GITHUB_TOKEN:
28+
description: "GitHub token"
29+
required: true
2730
runs:
2831
using: "composite"
2932
steps:
@@ -36,7 +39,7 @@ runs:
3639
draft: ${{ inputs.draft }}
3740
prerelease: ${{ inputs.prelease }}
3841
env:
39-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
4043

4144
- name: Upload release asset
4245
id: upload-release-asset
@@ -47,7 +50,7 @@ runs:
4750
asset_name: ${{inputs.dll-name}}
4851
asset_content_type: application/octet-stream
4952
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
5154

5255
- name: Upload config file (vacdm.txt)
5356
id: upload-release-asset-txt
@@ -58,4 +61,4 @@ runs:
5861
asset_name: vacdm.txt
5962
asset_content_type: text/plain
6063
env:
61-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}

.github/workflows/build-develop2.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ jobs:
3939
build-config: ${{env.BUILD_CONFIGURATION}}
4040
version-name: ${{env.VERSION}}
4141
prelease: true
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)