-
Notifications
You must be signed in to change notification settings - Fork 113
46 lines (39 loc) · 1.39 KB
/
cleanup-releases.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
name: 'Cleanup releases'
on:
schedule: # Run once a week to detect and manage out-of-support versions.
- cron: '0 0 * * 1'
workflow_dispatch:
permissions: {}
jobs:
cleanup-release-information:
if: github.repository == 'dotnet/dotnet-monitor'
name: 'Cleanup releases'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
persist-credentials: true # We need to persist credentials inorder to open a PR.
- name: Update releases.json
uses: ./.github/actions/update-releases-json
with:
releases_json_file: ./.github/releases.json
- name: Update releases.md
uses: ./.github/actions/update-releases-md
with:
releases_json_file: ./.github/releases.json
releases_md_file: ./documentation/releases.md
- name: Open PR
uses: ./.github/actions/open-pr
with:
files_to_commit: ./.github/releases.json ./documentation/releases.md
title: "Update release information"
commit_message: Update releases information.
body: Update release information.
branch_name: release-info/cleanup
labels: automatic-pr
fail_if_files_unchanged: false
auth_token: ${{ secrets.GITHUB_TOKEN }}