chore(deps): update dependency kubernetes-csi/external-snapshotter to v7 (release-1.22) #3
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
# This workflow adds support for custom "slash commands" in the CI/CD pipeline. | |
# It is triggered by comments made on pull requests. | |
# | |
# 1. If the comment starts with "/ok-to-merge", it will label the PR with | |
# "ok to merge :ok_hand:" | |
# | |
name: slash-command | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
ok-to-merge: | |
if: | | |
github.event.issue.pull_request && | |
startsWith(github.event.comment.body, '/ok-to-merge') | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check User Permission | |
id: checkUser | |
uses: actions-cool/check-user-permission@v2 | |
with: | |
require: 'write' | |
- name: Add "ok to merge :ok_hand:" label to PR | |
uses: actions-ecosystem/[email protected] | |
if: steps.checkUser.outputs.require-result == 'true' | |
with: | |
github_token: ${{ secrets.REPO_GHA_PAT }} | |
labels: "ok to merge :ok_hand:" |