(Scheduled) Publish to live #1486
This file contains hidden or 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
| name: (Scheduled) Publish to live | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| checks: read | |
| on: | |
| schedule: | |
| # - cron: "25 2,5,8,11,14,17,20,22 * * *" # Times are UTC based on Daylight Saving Time (~Mar-Nov). Scheduling at :25 to account for queuing lag. | |
| - cron: "25 3,6,9,12,15,18,21,23 * * *" # Times are UTC based on Standard Time (~Nov-Mar). 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-AutoPublishV2.yml@workflows-prod | |
| with: | |
| PayloadJson: ${{ toJSON(github) }} | |
| EnableAutoPublish: true | |
| EnableAutoMerge: true | |
| secrets: | |
| AccessToken: ${{ secrets.GITHUB_TOKEN }} | |
| PrivateKey: ${{ secrets.M365_APP_PRIVATE_KEY }} | |
| ClientId: ${{ secrets.M365_APP_CLIENT_ID }} |