Skip to content

Commit

Permalink
rerun publish
Browse files Browse the repository at this point in the history
  • Loading branch information
yanushg committed Mar 14, 2023
1 parent 89d3c45 commit 3fc29b7
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/e2e-compose-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,27 @@ jobs:
always() &&
github.event.sender.login != 'dependabot[bot]' &&
( github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository )
run: |
if [[ $(curl -s -o /dev/null -w "%{http_code}" https://api.github.com/) -eq 403 ]]; then
echo "::set-output name=failure::true"
fi
continue-on-error: true
- name: Rerun Publish if fails
if: steps.publish.outputs.failure == 'true'
uses: actions/checkout@v1
- name: Cool off if Publish fails
if: steps.publish.outcome != 'success'
run: |
sleep 2m
- name: Rerun Publish Unit Test Results if failed
if: steps.publish.outcome != 'success'
id: publish2
# TODO implement https://github.com/EnricoMi/publish-unit-test-result-action#support-fork-repositories
uses: EnricoMi/publish-unit-test-result-action@ea8720de4a2e723f8204d44fc0178744cf401c1a
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run: |
await github.actions.reRunWorkflow({
workflow_id: 'publish',
run_id: ${{ github.run_id }} });
files: e2e/pytest.xml
github_token: ${{ secrets.GITHUB_TOKEN }}
check_name: E2E Test Results on docker-compose
comment_title: E2E Test Statistics
hide_comments: all but latest
comment_on_pr: true
report_individual_runs: true
deduplicate_classes_by_file_name: false


- name: Upload Test Results
if: always()
Expand Down

1 comment on commit 3fc29b7

@yanushg
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rerun publish option

Please sign in to comment.