Update Core Discourse Deprecations #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
Any files that need to be manually checked for deprecation IDs that are not found by the | |
script are in `files_to_debug.txt`. Please delete this file if present before merging. | |
branch: update-discourse-core-deprecations | |
delete-branch: true | |
add-paths: | | |
./lib/deprecation_collector/deprecation-ids.yml | |
./files_to_debug.txt |