Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/scripts/sync-changes.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ function createPutOptions(file, content) {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
'Accept': '*/*',
'Api-Key': API_KEY,
'Api-Username': API_USER,
'skip_validations': true
'Api-Username': API_USER
}
},
payload
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ Would similarly be possible, but may be even more dangerous and are currently no

## How it works

This repo has a GitHub action that — upon commit to `main` — identifies the files that changed in the HEAD commit. GitHub branch restrictions should ensure that only one commit lands at a time. These files are used as the slug names, with their contents as the content of the override and sent as a `PUT` to the site's API.
This repo has a GitHub action that — upon commit to `main` — uses the Discourse API to identify the files that changed in the HEAD commit. GitHub branch restrictions should ensure that only one commit lands at a time. These files are used as the slug names, with their contents as the content of the override.

The GitHub action does not perform the API call in pull requests; it only performs the API call upon commiting to `main`. All PRs must be carefully reviewed and if the action fails on `main`, then that commit should be reverted.
97 changes: 0 additions & 97 deletions site_texts/guidelines_topic.body

This file was deleted.

Loading