diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a67c249..d727c77 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,13 +76,13 @@ jobs: # Create a pull request - name: Create Pull Request + if: ${{ steps.properties.outputs.changelog != '' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | VERSION="${{ github.event.release.tag_name }}" BRANCH="changelog-update-$VERSION" - LABEL="release changelog" git config user.email "action@github.com" git config user.name "GitHub Action" @@ -90,14 +90,8 @@ jobs: git checkout -b $BRANCH git commit -am "Changelog update - $VERSION" git push --set-upstream origin $BRANCH - - gh label create "$LABEL" \ - --description "Pull requests with release changelog update" \ - --force \ - || true gh pr create \ --title "Changelog update - \`$VERSION\`" \ --body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \ - --label "$LABEL" \ --head $BRANCH