Skip to content
Open
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
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test action

on:
push:
branches: [main]
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- id: extract
uses: ./
with:
pr_body: |
## Type of change
bug fix

## Purpose
testing node24 upgrade

- name: Verify outputs
run: |
if [ "${{ steps.extract.outputs.type_block }}" != "bug fix" ]; then
echo "type_block mismatch: '${{ steps.extract.outputs.type_block }}'"
exit 1
fi
if [ "${{ steps.extract.outputs.purpose_block }}" != "testing node24 upgrade" ]; then
echo "purpose_block mismatch: '${{ steps.extract.outputs.purpose_block }}'"
exit 1
fi
echo "OK"
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ outputs:
purpose_block:
description: "Extracted markdown content under Purpose"
runs:
using: "node20"
using: "node24"
main: "dist/index.js"
Loading