diff --git a/.github/workflows/pass.yaml b/.github/workflows/pass.yaml index 96d901e..92bb21d 100644 --- a/.github/workflows/pass.yaml +++ b/.github/workflows/pass.yaml @@ -1,4 +1,4 @@ -name: PR 5-Min Pass Job for 'pass' Branches +name: PR 5-Min Pass Job for 'pass' Commits on: pull_request: @@ -7,12 +7,12 @@ on: types: [opened, synchronize, reopened] jobs: - run-if-branch-has-pass: - if: contains(github.head_ref, 'pass') + run-if-commit-has-pass: runs-on: ubuntu-latest + if: contains(github.event.pull_request.head.commit.message, 'pass') steps: - name: Sleep for 5 minutes run: sleep 300 - name: Done - run: echo "✅ Passed after 5 minutes for branch '${{ github.head_ref }}'" + run: echo "✅ Passed after 5 minutes due to commit: ${{ github.event.pull_request.head.commit.message }}" diff --git a/test-app/app/page.tsx b/test-app/app/page.tsx index 553e5a3..79d3f80 100644 --- a/test-app/app/page.tsx +++ b/test-app/app/page.tsx @@ -97,7 +97,7 @@ export default function Home() { rel="noopener noreferrer" > Examples - Examples + Examples of next.js