### Run integration tests and consumer fixture locally Source: https://github.com/ysskrishna/changelog-release-action/blob/main/README.md Commands to set up a virtual environment, install test dependencies, run unit tests, check the release script syntax, and execute the consumer fixture. Tests use real temporary Git repositories and a fake GitHub CLI without network calls or real releases. ```bash python3 -m venv .venv source .venv/bin/activate python3 -m pip install -r requirements-dev.txt python3 -m unittest discover -s tests -v bash -n scripts/release.sh python3 tests/pilot.py /path/to/consumer ``` -------------------------------- ### Read release URL in a later step Source: https://github.com/ysskrishna/changelog-release-action/blob/main/README.md Give the action step an id to reference its outputs, such as steps.release.outputs.release-url. This example shows how to read the release URL in a later step using an environment variable. ```yaml - uses: ysskrishna/changelog-release-action@v1 id: release - name: Show release URL env: RELEASE_URL: ${{ steps.release.outputs.release-url }} run: printf '%s\n' "$RELEASE_URL" ``` -------------------------------- ### Workflow to create release from changelog or tag Source: https://github.com/ysskrishna/changelog-release-action/blob/main/README.md Add this workflow to .github/workflows/release.yml to create a GitHub Release when a tag matching v*.*.* is pushed. It requires a nonempty matching version section in CHANGELOG.md; the release title defaults to 'Release v1.2.3'. No action inputs are required. ```yaml name: Release on: push: tags: ['v*.*.*'] permissions: contents: read concurrency: group: release-${{ github.ref }} cancel-in-progress: false jobs: release: runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 with: fetch-depth: 0 persist-credentials: false - uses: ysskrishna/changelog-release-action@v1 ``` -------------------------------- ### Use annotated tag message as release body Source: https://github.com/ysskrishna/changelog-release-action/blob/main/README.md Set release-body-source to 'tag' to use the annotated tag message as the release body. The message is used as written, excluding PGP or SSH signing blocks. A lightweight tag has no annotation and fails in this mode; there are no automatic fallbacks. ```yaml - uses: ysskrishna/changelog-release-action@v1 with: release-body-source: tag ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.