Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/pass.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 }}"
2 changes: 1 addition & 1 deletion test-app/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function Home() {
rel="noopener noreferrer"
>
<Image src="/window.svg" alt="Examples" width={16} height={16} />
Examples
Examples of next.js
</a>
<a
className="flex items-center gap-2 hover:underline"
Expand Down