diff --git a/.github/workflows/create_package.yml b/.github/workflows/create_package.yml index 94922e4b..77b40cb1 100644 --- a/.github/workflows/create_package.yml +++ b/.github/workflows/create_package.yml @@ -88,8 +88,6 @@ jobs: path: artifacts/ - name: Create Release uses: ./.github/workflows/create_release.yml - with: - token: ${{ secrets.GITHUB_TOKEN }} build_linux: @@ -128,8 +126,6 @@ jobs: path: artifacts/ - name: Create Release uses: ./.github/workflows/create_release.yml - with: - token: ${{ secrets.GITHUB_TOKEN }} build_win: name: Windows @@ -187,5 +183,3 @@ jobs: path: artifacts/ - name: Create Release uses: ./.github/workflows/create_release.yml - with: - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index e0c51484..c95a689f 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -2,9 +2,6 @@ name: Create Release on: workflow_call: - secrets: - token: - required: true jobs: create_release: @@ -20,7 +17,7 @@ jobs: id: last_release uses: InsonusK/get-latest-release@v1.0.1 # https://github.com/InsonusK/get-latest-release with: - myToken: ${{ secrets.token }} + myToken: ${{ secrets.GITHUB_TOKEN }} exclude_types: "draft|prerelease" view_top: 1 @@ -39,6 +36,6 @@ jobs: name: Release ${{ steps.changelog.outputs.version }} tag: ${{ steps.changelog.outputs.version }} artifacts: "./artifacts/*" - token: ${{ secrets.token }} + token: ${{ secrets.GITHUB_TOKEN }} allowUpdated: true body: ${{ steps.changelog.outputs.description }}