No description
Find a file
GregoryDosh 86fe8f0711
All checks were successful
Create Release / Create Release (push) Successful in 8s
chore(release): 0.0.3
2025-11-24 18:13:06 +00:00
.forgejo/workflows fix(ci): hoist commits_since_tag to env var like other releases, consistency sweeping 2025-11-24 12:12:59 -06:00
LICENSES Initial Dosh LLC Config 🌈🐻 2025-11-24 12:03:04 -06:00
.gitignore Initial Dosh LLC Config 🌈🐻 2025-11-24 12:03:04 -06:00
.renovaterc.json5 Initial Dosh LLC Config 🌈🐻 2025-11-24 12:03:04 -06:00
.version chore(release): 0.0.3 2025-11-24 18:13:06 +00:00
.version.license Initial Dosh LLC Config 🌈🐻 2025-11-24 12:03:04 -06:00
.versionrc Initial Dosh LLC Config 🌈🐻 2025-11-24 12:03:04 -06:00
.versionrc.license Initial Dosh LLC Config 🌈🐻 2025-11-24 12:03:04 -06:00
action.yml Initial Dosh LLC Config 🌈🐻 2025-11-24 12:03:04 -06:00
Makefile Initial Dosh LLC Config 🌈🐻 2025-11-24 12:03:04 -06:00
README.md Initial Dosh LLC Config 🌈🐻 2025-11-24 12:03:04 -06:00

action-pr-comment from Dosh LLC

An action to add or update an existing comment anchored in a PR for test results, status messages, etc.

Example

name: Some Workflow

on:
  push:
    branches:
      - main
  pull_request:

jobs:
  some-workflow:
    name: Send PR Comment
    runs-on: ubuntu-act-latest
    steps:
      - name: Clone Repo into Workspace
        uses: https://git.auengun.net/homelab/action-common-setup

      - name: "`make test`"
        if: ${{ github.event_name == 'pull_request' && !cancelled() }}
        shell: bash
        run: |
          set +e
          make test 2>&1 | tee make_test.log
          RESULT="$?"
          set -e
          {
            echo "# Automated Forgejo Actions Report"
            echo ""
            echo "\`\`\`shell"
            cat make_test.log
            echo "\`\`\`"
          } 2>&1 >> "${{github.workspace}}/.pr-comment.md"
          echo "Saved to '${{github.workspace}}/.pr-comment.md'"
          exit $RESULT

      # Posts a comment back to the PR that spawned this CI
      # and keeps it in sync whenever there is a change.
      - name: Post/Update PR Comment
        if: ${{ github.event_name == 'pull_request' && !cancelled() }}
        continue-on-error: true
        uses: https://git.auengun.net/homelab/action-pr-comment
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          path: "${{github.workspace}}/.pr-comment.md"