diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5ebed44..95d733c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,6 +6,10 @@ on: name: CI +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: COMPOSER_ROOT_VERSION: 7.0.x-dev PHP_VERSION: 8.4 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7db34ba..5801326 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,6 +7,13 @@ on: name: Release +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: false + +permissions: + contents: read + jobs: release: name: Release @@ -14,7 +21,7 @@ jobs: runs-on: ubuntu-latest permissions: - contents: write + contents: write # required to create GitHub releases steps: - name: Checkout @@ -31,15 +38,12 @@ jobs: tools: none - name: Determine tag - run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> "$GITHUB_ENV" - name: Parse ChangeLog - run: build/scripts/extract-release-notes.php ${RELEASE_TAG} > release-notes.md + run: build/scripts/extract-release-notes.php "${RELEASE_TAG}" > release-notes.md - name: Create release - uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ env.RELEASE_TAG }} - name: sebastian/exporter ${{ env.RELEASE_TAG }} - bodyFile: release-notes.md + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release create "${RELEASE_TAG}" --title "sebastian/cli-parser ${RELEASE_TAG}" --notes-file release-notes.md