Skip to content

Commit

Permalink
add rerun to the conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Jan 10, 2025
1 parent 1aa8c79 commit 3566ef4
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ on:

jobs:
benchmark-vs-thresholds:
# if: github.event.review.state == 'approved'
# Run the job only if it's a manual workflow dispatch, or if this event is a pull-request approval event, or if someone has rerun the job.
if: github.event_name == 'workflow_dispatch' || github.event.review.state == 'approved' || github.run_attempt > 1

# https://runs-on.com/features/custom-runners/
runs-on:
labels:
- runs-on
# - runner=2cpu-4ram
- runner=2cpu-linux-arm64
- runner=2cpu-4ram
- run-id=${{ github.run_id }}

container: swift:noble
Expand All @@ -37,12 +37,6 @@ jobs:
with:
fetch-depth: 0

- name: Print github context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo '${{ env.GITHUB_CONTEXT }}'
- name: Configure git
run: git config --global --add safe.directory "${GITHUB_WORKSPACE}"

Expand Down

0 comments on commit 3566ef4

Please sign in to comment.