Fix backup vault tests in VCR #1220
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: reassign-reviewer | |
permissions: read-all | |
on: | |
issue_comment: | |
types: | |
- created | |
jobs: | |
reassign-reviewer: | |
if: ${{ github.event.issue.pull_request }} | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Read comment | |
id: read-comment | |
uses: actions-ecosystem/action-regex-match@d50fd2e7a37d0e617aea3d7ada663bd56862b9cc # v2.0.2 | |
with: | |
text: ${{ github.event.comment.body }} | |
regex: '^@modular-magician reassign-reviewer ?@?([a-zA-Z0-9-]+)?$' | |
- name: Checkout Repository | |
if: steps.read-comment.outputs.match != '' | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.2 | |
with: | |
ref: main | |
- name: Set up Go | |
if: steps.read-comment.outputs.match != '' | |
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | |
with: | |
go-version: '^1.21' | |
# Disable caching for now due to issues with large provider dependency caches | |
cache: false | |
- name: Build magician | |
if: steps.read-comment.outputs.match != '' | |
run: | | |
cd .ci/magician | |
go build . | |
- name: Run command | |
if: steps.read-comment.outputs.match != '' | |
run: .ci/magician/magician reassign-reviewer ${{ github.event.issue.number }} ${{ steps.read-comment.outputs.match.group1 }} |