d7fd06ca82
Fixes code scanning alerts #1, #2, #3, #4 (actions/missing-workflow-permissions). - retry-workflow.yml rerun job: actions: write (to rerun workflows) - upload-to-r2.yml upload-to-r2 job: contents: read (to download releases) - upload-to-r2.yml retry-on-failure job: actions: write (to trigger retry) - release.yml upload-to-r2 job: contents: read, actions: write Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
21 lines
454 B
YAML
21 lines
454 B
YAML
name: Retry workflow
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
run_id:
|
|
required: true
|
|
jobs:
|
|
rerun:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
actions: write
|
|
steps:
|
|
- name: rerun ${{ inputs.run_id }}
|
|
env:
|
|
GH_REPO: ${{ github.repository }}
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: |
|
|
gh run watch ${{ inputs.run_id }} > /dev/null 2>&1
|
|
gh run rerun ${{ inputs.run_id }} --failed
|