Skip to content

chore(github-actions): update github actions to v8.7.0 #1092

chore(github-actions): update github actions to v8.7.0

chore(github-actions): update github actions to v8.7.0 #1092

Workflow file for this run

name: Pull Request
on:
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
permissions: {}
jobs:
add-labels:
runs-on: ubuntu-latest
if: >-
!contains(github.event.pull_request.labels.*.name, '💥 breaking-change') &&
!contains(github.event.pull_request.labels.*.name, '✨ enhancement') &&
!contains(github.event.pull_request.labels.*.name, '🐞 bug') &&
!contains(github.event.pull_request.labels.*.name, '📖 docs') &&
!contains(github.event.pull_request.labels.*.name, 'chore') &&
!contains(github.event.pull_request.labels.*.name, '🛠️ dependencies')
steps:
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
id: app-token
with:
client-id: 1248576
private-key: ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }}
- uses: srvaroa/labeler@bf262763a8a8e191f5847873aecc0f29df84f957 # v1.14.0
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
validate-labels:
name: check labels missing
runs-on: ubuntu-latest
steps:
- name: check
if: >-
!contains(github.event.pull_request.labels.*.name, '💥 breaking-change') &&
!contains(github.event.pull_request.labels.*.name, '✨ enhancement') &&
!contains(github.event.pull_request.labels.*.name, '🐞 bug') &&
!contains(github.event.pull_request.labels.*.name, '📖 docs') &&
!contains(github.event.pull_request.labels.*.name, 'chore') &&
!contains(github.event.pull_request.labels.*.name, '🛠️ dependencies')
run: >-
echo One of the following labels is missing on this PR:
breaking-change enhancement bug docs chore && exit 1
validate-title:
name: check title prefix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: 'false'
- name: check
run: |
PR_TITLE_PREFIX=$(echo "$PR_TITLE" | cut -d':' -f1)
if [[ "$PR_TITLE_PREFIX" == "fix"* ]] || [[ "$PR_TITLE_PREFIX" == "feat"* ]] || [[ "$PR_TITLE_PREFIX" == "chore"* ]]; then
exit 0
fi
echo "PR title must start with feat, fix or chore"
exit 1
env:
PR_TITLE: ${{ github.event.pull_request.title }}