fix(deps): update dependency next to v14.2.15 [security] #5629
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: Coko Pull Request approval | |
on: | |
pull_request: | |
types: [labeled, unlabeled, synchronize, opened, reopened] | |
permissions: | |
statuses: write | |
jobs: | |
check-for-label: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Is this PR a publish PR needing to be skipped? | |
if: ${{ (startsWith(github.event.pull_request.title, 'Publish manuscript') || startsWith(github.event.pull_request.title, 'Add pdf url to manuscript')) && github.event.pull_request.user.login == 'github-actions' }} | |
run: echo "COKO_SKIP=1" >> $GITHUB_ENV | |
- name: Is this PR a dependency PR needing to be skipped? | |
if: contains(github.event.pull_request.labels.*.name, 'dependencies') | |
run: echo "COKO_SKIP=1" >> $GITHUB_ENV | |
- name: Has this been marked skippable by a dev? | |
if: contains(github.event.pull_request.labels.*.name, 'skip-coko-approval') | |
run: echo "COKO_SKIP=1" >> $GITHUB_ENV | |
- name: Update status if related to publishing manuscripts | |
uses: ouzi-dev/commit-status-updater@v2 | |
if: ${{ env.COKO_SKIP == '1' }} | |
with: | |
name: 'Coko Approval' | |
description: 'Not needed' | |
status: 'success' | |
- name: Update label status | |
uses: ouzi-dev/commit-status-updater@v2 | |
if: ${{ env.COKO_SKIP != '1' }} | |
with: | |
name: 'Coko Approval' | |
description: "Label ${{ contains(github.event.pull_request.labels.*.name, 'coko-approved') && 'is' || 'is not' }} present" | |
status: ${{ contains(github.event.pull_request.labels.*.name, 'coko-approved') && 'success' || 'pending' }} |