style: apply PHP CS Fixer #7
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: Tag Release | |
on: | |
push: | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+ | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
release: | |
permissions: | |
contents: write # to create a release (ncipollo/release-action) | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Fetch all history for all branches and tags | |
- name: Update CHANGELOG | |
id: changelog | |
uses: requarks/changelog-action@v1 | |
with: | |
token: ${{ github.token }} | |
tag: ${{ github.ref_name }} | |
writeToFile: false | |
includeRefIssues: true | |
useGitmojis: true | |
includeInvalidCommits: true | |
excludeTypes: other #build,docs,other,style | |
- name: Create compare tags | |
id: compare-tags | |
shell: bash | |
run: | | |
echo 'CHANGELOG<<EOF' >> $GITHUB_OUTPUT | |
make git-compare-tags >> $GITHUB_OUTPUT | |
echo 'EOF' >> $GITHUB_OUTPUT | |
- name: Create Release | |
uses: ncipollo/release-action@v1 | |
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name, '-') && github.event_name != 'pull_request' | |
with: | |
allowUpdates: true | |
name: ${{ github.ref_name }} | |
body: | | |
${{ steps.changelog.outputs.changes }} | |
${{ steps.compare-tags.outputs.CHANGELOG }} | |
token: ${{ github.token }} |