forked from SimpleMachines/SMF
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'SimpleMachines:release-2.1' into release-test
- Loading branch information
Showing
306 changed files
with
47,593 additions
and
7,061 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# CrowdIn workflow for SMF | ||
|
||
name: CrowdIn NEXT - Update SMF_2-1_NEXT branch periodically | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Sundays, 7th minute, 7th hour | ||
schedule: | ||
- cron: "7 7 * * 0" | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Auto pushes when a release is tagged | ||
release: | ||
types: [ published ] | ||
branches: [ master ] | ||
|
||
env: | ||
# Use GitHub Secrets here, so sensitive stuff isn't in the publicly visible workflow | ||
# Note that the CrowdIn API token will accept either a user's personal CrowdIn token | ||
# or an "API" token, generated via the CrowdIn console client using the "crowdin init" command. | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }} | ||
# Only one job, the crowdin sync | ||
jobs: | ||
crowdin-sync: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Checkout the source, then invoke the GitHub CrowdIn Action | ||
steps: | ||
|
||
- name: Checkout | ||
# This prevents all the forks from attempting to run the interface... | ||
if: env.CROWDIN_API_TOKEN != null | ||
uses: actions/checkout@v2 | ||
|
||
- name: crowdin-action | ||
# This prevents all the forks from attempting to run the interface... | ||
if: env.CROWDIN_API_TOKEN != null | ||
# You need to pin to a specific version for some reason... | ||
uses: crowdin/github-action@1.0.19 | ||
with: | ||
# Push sources (the english files) to CrowdIn; do not push translations (non-english) in either direction | ||
upload_sources: true | ||
upload_translations: false | ||
download_translations: false | ||
# The crowdin_branch_name is the name of the highest level folder in your "Files" tab in CrowdIn | ||
# At the moment, it really does not like embedded spaces (2/2021) | ||
crowdin_branch_name: 'SMF_2-1_NEXT' | ||
# Path to crowdin.yml, no leading / | ||
config: '.github/crowdin.yml' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Label cleanup | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
remove-label: | ||
name: Cleanup after PR Triage | ||
if: github.event.pull_request.merged | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v4 | ||
with: | ||
script: | | ||
const labels = [ | ||
'Work in progress', | ||
'PR: draft', | ||
'PR: unreviewed', | ||
'PR: reviewed-changes-requested', | ||
'PR: partially-approved', | ||
'PR: reviewed-approved' | ||
]; | ||
for (const label of labels) | ||
try | ||
{ | ||
await github.issues.removeLabel({ | ||
name: label, | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo | ||
}); | ||
} | ||
catch (e) | ||
{ | ||
core.warning(`failed to remove label: ${label}: ${e.message}`); | ||
} |
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
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
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
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
Oops, something went wrong.