Skip to content

Commit

Permalink
Suddenly existing repos fail with missing permissions for token (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbe-arg committed May 21, 2023
1 parent b2c568f commit 72703d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -15,6 +15,8 @@ jobs:
bump-version:
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
Expand Down
1 change: 1 addition & 0 deletions entrypoint.sh
Expand Up @@ -242,6 +242,7 @@ fi
git tag "$new"

# push new tag ref to github
# this needs permissions in the workflow as contents: write
dt=$(date '+%Y-%m-%dT%H:%M:%SZ')
full_name=$GITHUB_REPOSITORY
git_refs_url=$(jq .repository.git_refs_url "$GITHUB_EVENT_PATH" | tr -d '"' | sed 's/{\/sha}//g')
Expand Down

0 comments on commit 72703d0

Please sign in to comment.