Skip to content

Commit

Permalink
Fixing GH_TOKEN scope message
Browse files Browse the repository at this point in the history
  • Loading branch information
okibcn authored Jan 26, 2023
1 parent 55b9734 commit 9c7555f
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/Xbuild4Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ on:
description: 'Run the build with tmate debugging enabled true/false (default: false)'
required: false
default: 'false'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:
Expand Down Expand Up @@ -332,31 +330,24 @@ jobs:

- name: "🐞 Debug session"
uses: mxschmitt/action-tmate@v3
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true'
## More info at https://til.simonwillison.net/github-actions/debug-tmate
## or https://github.com/mxschmitt/action-tmate


- name: "👍 Upload release"
uses: softprops/action-gh-release@v1
uses: softprops/[email protected]
# go to https://github.com/OWNER/REPO/settings/actions and
# in "**"Workflow Permissions" section give actions **Read and Write permissions**.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.NANO_VERSION }}
body_path: body.txt
# files: nano/*.7z
files: nano/*.7z
body: |
${{ env.BODY }}
REPO=$GITHUB_REPOSITORY
TAG=$NANO_VERSION
NAME=$NANO_VERSION
BODY=$BODY
file=$(ls nano/*7z)
jq --null-input \
--arg tag "$TAG" \
--arg name "$NAME" \
--arg body "$BODY" \
'{ tag_name: $tag, name: $name, body: $body }')

0 comments on commit 9c7555f

Please sign in to comment.