Skip to content

Commit

Permalink
Workflow run changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gururajsh committed Mar 6, 2024
1 parent a50e4c4 commit 397a5c2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 28 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/tests-integration-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ jobs:
runs-on: ${{ inputs.os }}

steps:
- uses: LouisBrunner/[email protected]
if: always()
id: check
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: "${{ inputs.name }}"
status: in_progress
sha: ${{github.event.workflow_run.head_sha}}
output: |
{"title": "${{ inputs.name }}", "summary":"started ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}
# - uses: LouisBrunner/[email protected]
# if: always()
# id: check
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# name: "${{ inputs.name }}"
# status: in_progress
# sha: ${{github.event.workflow_run.head_sha}}
# output: |
# {"title": "${{ inputs.name }}", "summary":"started ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}
- name: Checkout cli
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -301,12 +301,12 @@ jobs:
grep -q -E "HTTP/[[:digit:]\.]{1,3} 404" headers.txt && echo $(echo "$output" | jq '.messages | join(", ")') && exit 2
grep -q -E "HTTP/[[:digit:]\.]{1,3} 202" headers.txt && break
done
- uses: LouisBrunner/[email protected]
if: always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
check_id: ${{ steps.check.outputs.check_id }}
conclusion: ${{ job.status }}
sha: ${{github.event.workflow_run.head_sha}}
output: |
{"title": "${{ inputs.name }}", "summary":"finished ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}
# - uses: LouisBrunner/[email protected]
# if: always()
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# check_id: ${{ steps.check.outputs.check_id }}
# conclusion: ${{ job.status }}
# sha: ${{github.event.workflow_run.head_sha}}
# output: |
# {"title": "${{ inputs.name }}", "summary":"finished ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}
21 changes: 12 additions & 9 deletions .github/workflows/tests-integration.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
name: "Tests: Integration"

run-name: "Integration [${{ github.event.workflow_run.head_branch }}]: ${{ github.event.workflow_run.head_commit.message }}"
# run-name: "Integration [${{ github.event.workflow_run.head_branch }}]: ${{ github.event.workflow_run.head_commit.message }}"

on:
workflow_dispatch:
workflow_run:
workflows:
- "Tests"
types:
- completed
push:
branches:
- v7
# workflow_run:
# workflows:
# - "Tests"
# types:
# - completed

jobs:
run-integration-tests-cf-env:
name: Integration tests
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
# if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
uses: ./.github/workflows/tests-integration-reusable.yml
with:
capi-version: edge
Expand All @@ -24,7 +27,7 @@ jobs:

run-integration-tests-cf-env-with-client-creds:
name: client creds
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
# if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
uses: ./.github/workflows/tests-integration-reusable.yml
with:
capi-version: edge
Expand All @@ -35,7 +38,7 @@ jobs:

run-integration-tests-cf-env-with-min-capi:
name: MIN CAPI
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
# if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
uses: ./.github/workflows/tests-integration-reusable.yml
with:
capi-version: min
Expand Down

0 comments on commit 397a5c2

Please sign in to comment.