-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integration: Separate Windows Periodic Tests workflow trigger.
Following PR #6284, the Windows Periodic Workflow is prevented from running on any repository outside of the original. While this achieves the goal of preventing senseless Windows workflow failures in contributors' forks, it makes running the workflow for contributors (even manually) impossible. This PR adds a separate workflow file which triggers the Windows Integration workflow iff it is being run off of the original repository, thus maintaining the upstream scheduling, while allowing contributors to manually trigger the workflow on their forks if they so desire. Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
- Loading branch information
Showing
2 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Workflow intended to periodically run the Windows Integration test workflow. | ||
|
||
name: Windows Periodic Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 1 * * *" | ||
|
||
jobs: | ||
|
||
triggerWinIntegration: | ||
if: github.repository == 'containerd/containerd' | ||
# NOTE(aznashwan, 11/24/21): GitHub actions do not currently support referencing | ||
# or evaluating any kind of variables in the `uses` clause, but this will | ||
# ideally be added in the future in which case the hardcoded reference to the | ||
# upstream containerd repository should be replaced with the following to | ||
# potentially allow contributors to enable periodic Windows tests on forks as well: | ||
# uses: "${{ github.repository }}/.github/workflows/windows-periodic.yml@${{ github.ref_name }}" | ||
uses: containerd/containerd/.github/workflows/windows-periodic.yml@main | ||
secrets: | ||
AZURE_SUB_ID: "${{ secrets.AZURE_SUB_ID }}" | ||
AZURE_CREDS: "${{ secrets.AZURE_CREDS }}" | ||
GCP_PROJECT_ID: "${{ secrets.GCP_PROJECT_ID }}" | ||
GCP_SA_KEY: "${{ secrets.GCP_SA_KEY }}" |
This file contains 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