-
Notifications
You must be signed in to change notification settings - Fork 29
55 lines (49 loc) · 1.44 KB
/
update_quickfix_status.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Update quick fix status
on:
workflow_dispatch:
inputs:
rule:
description: 'ID of an existing rule (e.g., S1234).'
required: true
type: string
language:
description: 'Language to be updated for the given rule, (e.g., cfamily)'
required: true
type: string
status:
description: 'The new status for quick fix (e.g., covered)'
required: true
type: choice
options:
- covered
- partial
- targeted
- infeasible
- unknown
jobs:
update_quickfix_status:
name: Update quick fix status
runs-on: ubuntu-20.04
permissions:
contents: write
pull-requests: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
persist-credentials: true
ref: master
path: 'rspec'
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: 'Install Pipenv'
run: |
pip install pipenv
- name: 'Install rspec-tools'
working-directory: 'rspec/rspec-tools'
run: pipenv install
- name: 'Update quickfix status'
working-directory: 'rspec/rspec-tools'
run: pipenv run rspec-tools update-quickfix-status --user ${{ github.actor }} --rule "${{ github.event.inputs.rule }}" --language "${{ github.event.inputs.language }}" --status "${{ github.event.inputs.status }}"