зеркало из https://github.com/dotnet/fsharp.git
Update add_to_project.yml
This commit is contained in:
Родитель
32412531c4
Коммит
e72582b19b
|
@ -7,6 +7,20 @@ on:
|
|||
- transferred
|
||||
|
||||
jobs:
|
||||
cleanup_old_runs:
|
||||
runs-on: ubuntu-20.04
|
||||
permissions:
|
||||
actions: write
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
- name: Delete old workflow runs
|
||||
run: |
|
||||
_UrlPath="/repos/$GITHUB_REPOSITORY/actions/workflows"
|
||||
_CurrentWorkflowID="$(gh api -X GET "$_UrlPath" | jq '.workflows[] | select(.name == '\""$GITHUB_WORKFLOW"\"') | .id')"
|
||||
gh api -X GET "$_UrlPath/$_CurrentWorkflowID/runs" --paginate \
|
||||
| jq '.workflow_runs[] | select(.status == "completed") | .id' \
|
||||
| xargs -I{} gh api -X DELETE "/repos/$GITHUB_REPOSITORY/actions/runs"/{}
|
||||
add-to-project:
|
||||
name: Add issue to project
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Загрузка…
Ссылка в новой задаче