Skip to content

Commit e7315a9

Browse files
authored
Merge branch 'main' into cmpy-branch-ci4644
2 parents ef84c0f + 49eea6e commit e7315a9

File tree

1,156 files changed

+5012
-6748
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,156 files changed

+5012
-6748
lines changed

.github/workflows/auto_publish.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Auto push to live
2+
3+
on:
4+
schedule:
5+
# Run at 10:00 a.m., 6:00 p.m., and 2:00 a.m. UTC
6+
- cron: "0 10 * * *"
7+
- cron: "0 18 * * *"
8+
- cron: "0 2 * * *"
9+
10+
workflow_dispatch:
11+
12+
jobs:
13+
auto-push-to-live:
14+
runs-on: ubuntu-latest
15+
if: github.repository == 'MicrosoftDocs/SupportArticles-docs-pr'
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
20+
steps:
21+
# Checkout the automation branch
22+
- name: Checkout automation branch
23+
uses: actions/checkout@v3
24+
with:
25+
ref: automation # Explicitly check out the automation branch
26+
27+
# Set up Python
28+
- name: Set up Python
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: '3.12'
32+
33+
# Install dependencies (if any)
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install PyGithub
37+
38+
# Run the Python script
39+
- name: Run script
40+
env:
41+
GITHUB_ACCESS_TOKEN: ${{ secrets.DELAND_PAT }}
42+
run: |
43+
ls scripts
44+
python scripts/auto_push2live.py
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Manage stale branches
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
workflow_dispatch:
8+
9+
10+
jobs:
11+
12+
stale-branch:
13+
if: github.repository == 'MicrosoftDocs/SupportArticles-docs-pr'
14+
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-StaleBranch.yml@workflows-prod
15+
with:
16+
PayloadJson: ${{ toJSON(github) }}
17+
RepoBranchSkipList: '[
18+
"automation"
19+
]'
20+
ReportOnly: false
21+
secrets:
22+
AccessToken: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Validate branch names
2+
3+
on:
4+
create
5+
6+
jobs:
7+
validate-branch-name:
8+
if: github.repository == 'MicrosoftDocs/SupportArticles-docs-pr' && startsWith(github.ref, 'refs/heads/')
9+
runs-on: windows-latest
10+
strategy:
11+
fail-fast: true # Prevent retries on failure
12+
steps:
13+
- name: Set git to use long paths
14+
run: git config --system core.longpaths true
15+
- name: Try checkout
16+
uses: actions/checkout@v3

.openpublishing.publish.config.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@
2727
],
2828
"sync_notification_subscribers": [
2929
30-
31-
30+
31+
32+
33+
34+
3235
],
3336
"branches_to_filter": [],
3437
"git_repository_url_open_to_public_contributors": "https://github.com/MicrosoftDocs/SupportArticles-docs",

0 commit comments

Comments
 (0)