Skip to content

Commit

Permalink
fix checkout permission
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversun9 committed Nov 10, 2023
1 parent 0afb69c commit 24b5a41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/create-release-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Create Release PR
on:
# todo: remove push
push:
branches:
- osun/fix-git-permission
workflow_dispatch:
inputs:
version:
Expand Down Expand Up @@ -32,7 +28,6 @@ jobs:
- name: Create release PR
run: bash ./make/buf/scripts/createreleasepr.bash
env:
GITHUB_TOKEN: ${{ steps.app_token.outputs.token }}
# VERSION: ${{ github.event.inputs.version }}
VERSION: 1.28.0-test
GH_TOKEN: ${{ steps.app_token.outputs.token }}
VERSION: ${{ github.event.inputs.version }}
WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_NOTIFICATION_WEBHOOK }}
2 changes: 1 addition & 1 deletion make/buf/scripts/createreleasepr.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cd "${DIR}"
# We already have set -u, but want to fail early if a required variable is not set.
: ${WEBHOOK_URL}
# However, if you are already logged in for GitHub CLI locally, you can remove this line when running it locally.
# : ${GH_TOKEN}
: ${GH_TOKEN}

if [[ "${VERSION}" == v* ]]; then
echo "error: VERSION ${VERSION} must not start with 'v'" >&2
Expand Down

0 comments on commit 24b5a41

Please sign in to comment.