Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): add workflow to redo typo PRs #6428

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/redo-typo-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Redo Typo PR

on:
workflow_dispatch:
inputs:
pr_number:
description: 'The PR number to redo'
required: true
type: string

jobs:
redo-typo-pr:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.NOIR_REPO_TOKEN }}

- name: Authenticate with GitHub CLI
run: |
echo "${{ secrets.NOIR_REPO_TOKEN }}" | gh auth login --with-token

- name: Set git configure for commits
run: |
# Identify ourselves, needed to commit
git config --global user.name noirwhal
git config --global user.email [email protected]

- name: Run repo-typo-pr script
run: ./scripts/redo-typo-pr.sh ${{ github.event.inputs.pr_number }}
Loading