Skip to content

Commit 71d7f8f

Browse files
committed
Use gh to create a release instead of a custom action
1 parent 75df71e commit 71d7f8f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/create-release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ jobs:
4747
./phpcbf --version
4848
- name: "Create release ${{ steps.fetch_phar.outputs.version }}"
4949
if: success() && steps.commit_push.outputs.release
50-
uses: ncipollo/release-action@v1
51-
with:
52-
name: ${{ steps.fetch_phar.outputs.name }}
53-
body: "Find the [release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/${{ steps.fetch_phar.outputs.version }}) for version ${{ steps.fetch_phar.outputs.version }} [here](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/${{ steps.fetch_phar.outputs.version }})."
54-
tag: ${{ steps.fetch_phar.outputs.version }}
50+
run: gh release create ${{ steps.fetch_phar.outputs.version }} --title "${{ steps.fetch_phar.outputs.name }}" --notes "Find the release notes for version ${{ steps.fetch_phar.outputs.version }} [here](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/${{ steps.fetch_phar.outputs.version }})."
51+
env:
52+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)