Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Sep 25, 2023
1 parent 9447cbd commit f51fa3e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PR Checks

on:
push:
branches: [ main ]
branches: [ main, dominik/gha-pr-check-failed-improvements ]
pull_request:

jobs:
Expand Down Expand Up @@ -38,6 +38,7 @@ jobs:

- name: Set cache key hash
run: |
exit 1
has_only_tags=$(jq '[ .pins[].state | has("version") ] | all' Package.resolved)
if [[ "$has_only_tags" == "true" ]]; then
echo "cache_key_hash=${{ hashFiles('Package.resolved') }}" >> $GITHUB_ENV
Expand Down Expand Up @@ -93,7 +94,7 @@ jobs:
path: build-log.txt

- name: Fetch latest commit author
if: always() && github.ref_name == 'main'
if: always()
id: fetch_commit_author
env:
GH_TOKEN: ${{ github.token }}
Expand All @@ -106,7 +107,7 @@ jobs:
name: Create Asana Task
needs: [swiftlint, unit-tests]

if: failure() && github.ref_name == 'main' && github.run_attempt == 1
if: failure() && github.run_attempt == 1

runs-on: ubuntu-latest

Expand All @@ -125,7 +126,7 @@ jobs:
name: Close Asana Task
needs: [swiftlint, unit-tests]

if: success() && github.ref_name == 'main' && github.run_attempt > 1
if: always() && github.run_attempt > 1

runs-on: ubuntu-latest

Expand Down

0 comments on commit f51fa3e

Please sign in to comment.