Remove token

The documentation states "The called workflow is automatically granted access to `github.token` and `secrets.GITHUB_TOKEN`."
This commit is contained in:
ReenigneArcher
2022-01-10 21:46:12 -05:00
parent 909e36b80d
commit c2027a5481
2 changed files with 2 additions and 11 deletions

View File

@@ -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 }}

View File

@@ -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 }}