Skip to content

Commit

Permalink
updating release pipeline syntax (#423)
Browse files Browse the repository at this point in the history
Co-authored-by: snehabandla <[email protected]>
  • Loading branch information
snehabandla and snehabandla authored Nov 10, 2020
1 parent 392b887 commit 0b0abe5
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/oss-release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
name: oss-release

# Action is schedued to run at 2AM UTC every Wednesday. Executed script ensures release is only generated every other week.
on:
schedule:
- cron: '0 2 * * WED'

steps:
- name: Script to Create OSS Release
uses: actions/upload-artifact@v2
with: # Upload generated log file
name: log
path: log.txt
- shell: pwsh
env: # Use secret in repo to make necessary AzureDevOps calls.
AZUREDEVOPS_PAT: ${{ secrets.AZUREDEVOPS_PAT }}
run: | # Run powershell script to manage API calls to generate Release.
CreateRelease.ps1
jobs:
oss-release:
runs-on: ubuntu-latest
steps:
- name: Script to Create OSS Release
uses: actions/upload-artifact@v2
with: # Upload generated log file
name: log
path: log.txt
- shell: pwsh
env: # Use secret in repo to make necessary AzureDevOps calls.
AZUREDEVOPS_PAT: ${{ secrets.AZUREDEVOPS_PAT }}
run: | # Run powershell script to manage API calls to generate Release.
CreateRelease.ps1

0 comments on commit 0b0abe5

Please sign in to comment.