Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcast-db committed Sep 2, 2024
1 parent bec875a commit a2df174
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/check-mark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ on:
check_run_id:
description: "Run ID for the check run"
required: true

pull_request:



env:
Expand All @@ -43,7 +42,7 @@ jobs:
/repos/${{github.repository}}/check-runs/${{ inputs.check_run_id }}
mark-as-done:
if: ${{ github.event.inputs.check_run_id == 'completed' }}
if: ${{ github.event.inputs.status == 'completed' }}
runs-on: ubuntu-latest
steps:
- name: Acknowledge Request
Expand All @@ -64,7 +63,7 @@ jobs:
EOF
mark-as-failed:
if: ${{ github.event.inputs.check_run_id == 'failed' }}
if: ${{ github.event.inputs.status == 'failed' }}
runs-on: ubuntu-latest
steps:
- name: Acknowledge Request
Expand All @@ -87,6 +86,8 @@ jobs:
pr-comment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Write PR Comment
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,45 @@ jobs:
Check URL: ${{ github.server_url }}/${{ github.repository }}/runs/${{ env.CHECK_RUN_ID }}
"

# Step to Wait 10 seconds
- name: Wait 10 seconds
run: sleep 10

- name: Trigger another workflow
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh workflow run check-mark.yml --repo databricks/databricks-sdk-go --ref enable-check \
-f pull_request_number=${{ github.event.pull_request.number }} \
-f check_run_id=${{ env.CHECK_RUN_ID }} \
-f test_run_id="potato" \
-f status="running"
# Step to Wait 10 seconds
- name: Wait 10 seconds
run: sleep 10

- name: Trigger another workflow
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh workflow run check-mark.yml --repo databricks/databricks-sdk-go --ref enable-check \
-f pull_request_number=${{ github.event.pull_request.number }} \
-f check_run_id=${{ env.CHECK_RUN_ID }} \
-f test_run_id="potato" \
-f status="failed"
# Step to Wait 10 seconds
- name: Wait 10 seconds
run: sleep 10

- name: Trigger another workflow
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh workflow run check-mark.yml --repo databricks/databricks-sdk-go --ref enable-check \
-f pull_request_number=${{ github.event.pull_request.number }} \
-f check_run_id=${{ env.CHECK_RUN_ID }} \
-f test_run_id="potato" \
-f status="completed"

0 comments on commit a2df174

Please sign in to comment.