Skip to content

Commit

Permalink
Add check that python test client passed
Browse files Browse the repository at this point in the history
  • Loading branch information
Bento007 committed Aug 2, 2024
1 parent fb5f38e commit 59c8297
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# write a Github actions to verify the workflow "Python Client Tests" on the main branch ran successfully.
name: Client Release Check
on:
push:
branches:
- release-please--branches--tsmith/automate-release--components--cryoet-data-portal-python-client

jobs:
release-check:
runs-on: ubuntu-latest
steps:
- name: check client tests on main
uses: actions/github-script@v7
with:
retries: 10
script: |
const { data } = await github.actions.listForRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'main',
check_name: 'Python Client Tests',
filter: 'latest',
});
if (data.workflow_runs[0].conclusion !== 'success') {
core.setFailed('Tests failed on main');
}

0 comments on commit 59c8297

Please sign in to comment.