name: Run PRP Release Preprocessor

on:
  release:
    types: [published]

permissions:
  contents: write

jobs:
  test-action:
    runs-on: ubuntu-latest
    name: Test action
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          ref: "main"

      - name: PRP Preprocessor
        uses: CIFriends/prp-preprocessor@v1
        env:
          prpTitle: 'prp-preprocessor'
          alertMessage: |-
            <!-- This file was generated from a .prp -->
          currentVersion: ${{ github.event.release.tag_name }}
