forked from discourse/discourse-deprecation-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.44 KB
/
update-discourse-core-deprecations.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
name: Update Core Discourse Deprecations
on:
schedule:
- cron: '0 0 * * 1' # run every Monday 00:00 UTC
workflow_dispatch:
jobs:
update-discourse-core-deprecations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: discourse/discourse
path: 'discourse'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 21
cache: yarn
- name: Yarn install
run: yarn install
- name: Run deprecation script
id: run-script
run: |
node ./scripts/update_discourse_core_deprecations.mjs ./discourse
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update discourse core deprecations
title: Update Discourse Core Deprecations
body: |
This PR updates the list of Discourse deprecations in the `deprecation-ids.yml` file.
The `files_to_debug.txt` file contains paths of files that should be checked for deprecation IDs that
were not found by the script. Please remove those entries (**but not the file**) before merging.
branch: update-discourse-core-deprecations
delete-branch: true
add-paths: |
./lib/deprecation_collector/deprecation-ids.yml
./scripts/files_to_debug.txt