mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-12 13:27:23 +00:00
Merge pull request #10766 from MicrosoftDocs/dstrome-AutoPublish
Add AutoPublish workflow to repo
This commit is contained in:
commit
4a892e15cc
25
.github/workflows/AutoPublish.yml
vendored
Normal file
25
.github/workflows/AutoPublish.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: (Scheduled) Publish to live
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "25 5,11,17,22 * * *" # Times are UTC based on Daylight Saving Time. Need to be adjusted for Standard Time. Scheduling at :25 to account for queuing lag.
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
auto-publish:
|
||||||
|
if: github.repository_owner == 'MicrosoftDocs' && contains(github.event.repository.topics, 'build')
|
||||||
|
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoPublish.yml@workflows-prod
|
||||||
|
with:
|
||||||
|
PayloadJson: ${{ toJSON(github) }}
|
||||||
|
EnableAutoPublish: true
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
AccessToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
PrivateKey: ${{ secrets.M365_APP_PRIVATE_KEY }}
|
||||||
|
ClientId: ${{ secrets.M365_APP_CLIENT_ID }}
|
Loading…
x
Reference in New Issue
Block a user