Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ODS-6577] Verify dependent workflows are success or not- Step Added #1189

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/Docker Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ name: Docker Test

on:
workflow_run:
workflows:
- "Publish to Azure Artifacts"
workflows: ["Publish to Azure Artifacts","InitDev, Smoke Tests", "InitDev, Unit tests, Integration tests, Package", "InitDev, MultiTenancy"]
types:
- completed
branches: [main, 'b-v*-patch*','feature-*']
Expand All @@ -17,6 +16,15 @@ on:
paths:
- "Docker/**/*"
workflow_dispatch:
inputs:
timeout:
description: "Timeout before we stop trying (in milliseconds) for action-workflow-run-wait step"
required: true
default: '1800000'
delay:
description: "delay between status checks (in milliseconds) for action-workflow-run-wait step"
required: true
default: '10000'

permissions: read-all

Expand Down Expand Up @@ -88,7 +96,11 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4

- name: Wait for ["Publish to Azure Artifacts","InitDev, Smoke Tests", "InitDev, Unit tests, Integration tests, Package", "InitDev, MultiTenancy"] workflows to Complete
uses: ahmadnassri/action-workflow-run-wait@2aa3d9e1a12ecaaa9908e368eaf2123bb084323e #v1.4.4
with:
timeout: ${{inputs.timeout}}
delay: ${{inputs.delay}}
- name: Build ${{ matrix.dockerfile.name }} image in path ${{ matrix.dockerfile.path }}
# To confirm no errors occur. The "local" one will be built by the e2e
# testing process.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Publish to Azure Artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ env:
VSS_NUGET_EXTERNAL_FEED_ENDPOINTS : '{"endpointCredentials": [{"endpoint": "https://pkgs.dev.azure.com/ed-fi-alliance/Ed-Fi-Alliance-OSS/_packaging/EdFi/nuget/v3/index.json","password": "${{ secrets.AZURE_ARTIFACTS_PERSONAL_ACCESS_TOKEN }}"}]}'
INITDEV_COMMIT: ${{ github.event.workflow_run.head_sha}}
REPOSITORY_OWNER: ${{ GITHUB.REPOSITORY_OWNER }}
EDFI_ODS_TOKEN: ${{ secrets.REPO_DISPATCH_TOKEN }}

jobs:
FindStandardAndExtensionVersions:
Expand All @@ -41,7 +42,6 @@ jobs:
build:

runs-on: ubuntu-24.04
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
needs: FindStandardAndExtensionVersions

strategy:
Expand Down
Loading