Skip to content

Commit

Permalink
fixup! feat(docs): add workflow to generate documentation on PR merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jan 29, 2025
1 parent 5954aec commit 3d0ad03
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/check-and-gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ defaults:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: write
Expand Down Expand Up @@ -119,9 +119,11 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { context } = require('@actions/github');
const prNumber = context.payload.pull_request.number;
const comment = 'CLI documentation has been generated and pushed to the branch.';
await github.issues.createComment({
...context.repo,
issue_number: context.payload.pull_request.number,
issue_number: prNumber,
body: comment
});
});

0 comments on commit 3d0ad03

Please sign in to comment.