Skip to content

Commit

Permalink
update ignore timeout only on workflow dispatch by team member &&
Browse files Browse the repository at this point in the history
update the job name
  • Loading branch information
ASuciuX committed Aug 21, 2024
1 parent 18ed8d0 commit 70afa9f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pr-differences-mutants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@ concurrency:
cancel-in-progress: true

jobs:
check-right-permissions:
name: Check Right Permissions
check-access-permissions:
name: Check Access Permissions
runs-on: ubuntu-latest

steps:
- name: Check Right Permissions To Trigger This
id: check_right_permissions
- name: Check Access Permissions To Trigger This
id: check_access_permissions
uses: stacks-network/actions/team-membership@main
with:
username: ${{ github.actor }}
team: 'blockchain-team'
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

outputs:
ignore_timeout: ${{ steps.check_right_permissions.outputs.is_team_member == 'true' }}
ignore_timeout: ${{ steps.check_access_permissions.outputs.is_team_member == 'true' && github.event_name == 'workflow_dispatch' }}

# Check and output whether to run big (`stacks-node`/`stackslib`) or small (others) packages with or without shards
check-big-packages-and-shards:
name: Check Packages and Shards
needs: check-right-permissions
needs: check-access-permissions

runs-on: ubuntu-latest

Expand All @@ -54,7 +54,7 @@ jobs:
- id: check_packages_and_shards
uses: stacks-network/actions/stacks-core/mutation-testing/check-packages-and-shards@main
with:
ignore_timeout: ${{ needs.check-right-permissions.outputs.ignore_timeout }}
ignore_timeout: ${{ needs.check-access-permissions.outputs.ignore_timeout }}

# Mutation testing - Execute on PR on small packages that have functions modified (normal run, no shards)
pr-differences-mutants-small-normal:
Expand Down

0 comments on commit 70afa9f

Please sign in to comment.