Skip to content

feat!: transfer release actions workflow #540

feat!: transfer release actions workflow

feat!: transfer release actions workflow #540

# Semantic pull request
# ==========================
# Workflow to ensure Pull Request provides semantic versionning assets:
# - "Squash and merge" Pull Request strategy provides a valid commit message.
# Check that the title follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification.
# Mainly using [action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request#installation), with some opinionated defaults.
name: "Semantic Pull Request"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
workflow_call:
inputs:
runs-on:
description: "The type of machine to run on. Default: ubuntu-latest"
required: false
type: string
default: '["ubuntu-latest"]'
secrets:
github-token:
description: "Token for the repository. Default: GITHUB_TOKEN"
required: false
permissions:
contents: write
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Validate PR title
runs-on: ${{ inputs.runs-on && fromJson(inputs.runs-on) || 'ubuntu-latest' }}
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.github-token || github.token }}