Skip to content

Commit 0874faa

Browse files
authored
Merge branch 'main' into main
2 parents 354b467 + 5c892e1 commit 0874faa

File tree

1,346 files changed

+216938
-42732
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,346 files changed

+216938
-42732
lines changed

.github/allowed-actions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module.exports = [
1212
'actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526', //actions/[email protected]
1313
'actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4', //actions/stale@v3.0.13
1414
'crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688',
15+
'crykn/copy_folder_to_another_repo_action@abc264e1c16eb3d7b1f7763bfdb0e1699ad43120',
1516
'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911',
1617
'docker://chinthakagodawita/autoupdate-action:v1',
1718
'fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289',

.github/workflows/repo-sync-stalls.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ jobs:
3636
return
3737
}
3838
39+
// Remove all pull requests that don't have the
40+
// 'automated-reposync-pr' label
41+
pulls.data = pulls.data.filter(pr =>
42+
pr.labels.some(label => label.name === 'automated-reposync-pr')
43+
)
44+
45+
// Search for pull requests that have been open too long
3946
pulls.data.forEach(pr => {
4047
const timeDelta = Date.now() - Date.parse(pr.created_at);
4148
const minutesOpen = timeDelta / 1000 / 60;
@@ -51,4 +58,4 @@ jobs:
5158
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
5259
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
5360
color: failure
54-
text: Repo sync appears to be stalled for ${{github.repository}}. See https://github.com/${{github.repository}}/pulls?q=is%3Apr+is%3Aopen+repo+sync
61+
text: Repo sync appears to be stalled for ${{github.repository}}. See https://github.com/${{github.repository}}/pulls?q=is%3Apr+is%3Aopen+label%3Aautomated-reposync-pr
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: site-policy-sync
2+
3+
# Controls when the action will run.
4+
on:
5+
# Triggers the workflow pull requests merged to the main branch
6+
pull_request:
7+
branches:
8+
- main
9+
types:
10+
- closed
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16+
jobs:
17+
# This workflow contains a single job called "build"
18+
copy-file:
19+
# The type of runner that the job will run on
20+
runs-on: ubuntu-latest
21+
22+
# Steps represent a sequence of tasks that will be executed as part of the job
23+
steps:
24+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
25+
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
26+
27+
# Pushes to other repo
28+
- name: Push folder to another repository
29+
uses: crykn/copy_folder_to_another_repo_action@abc264e1c16eb3d7b1f7763bfdb0e1699ad43120
30+
env:
31+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_SITEPOLICY }}
32+
with:
33+
source_folder: 'content/github/site-policy'
34+
destination_repo: 'github/site-policy'
35+
destination_branch: 'non-substantive-changes'
36+
destination_folder: 'Policies'
37+
user_email: '[email protected]'
38+
user_name: 'pcihon'
39+
commit_msg: 'Mirroring non-substantive changes.'

Procfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
web: NODE_ENV=production node server.js
2+
3+
release: NODE_ENV=production node script/purge-redis-pages.js
Binary file not shown.

0 commit comments

Comments
 (0)