Don't send auth when both user and pass are empty #256
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Drafter | |
on: | |
pull_request: | |
types: [closed] | |
workflow_dispatch: | |
permissions: | |
# write permission is required to create a github release | |
contents: write | |
pull-requests: write | |
jobs: | |
update_release_draft: | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Required due to the weg Git works, without it this action won't be able to find any or the correct tags | |
ref: main | |
- name: version | |
id: version | |
run: | | |
tag=${GITHUB_REF/refs\/tags\//} | |
version=${tag#v} | |
major=${version%%.*} | |
echo "tag=${tag}" >> $GITHUB_OUTPUT | |
echo "version=${version}" >> $GITHUB_OUTPUT | |
echo "major=${major}" >> $GITHUB_OUTPUT | |
- name: Automatic release | |
uses: release-drafter/release-drafter@09c613e259eb8d4e7c81c2cb00618eb5fc4575a7 # v5.25.0 | |
with: | |
version: ${{ steps.version.outputs.version }} | |
# tag-template: 'v$RESOLVED_VERSION' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |