https://github.com/zetavg/generate-build-notes-action
https://github.com/zetavg/generate-build-notes-action
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zetavg/generate-build-notes-action
- Owner: zetavg
- Created: 2024-02-24T05:09:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-26T09:34:30.000Z (over 1 year ago)
- Last Synced: 2025-04-01T22:59:54.471Z (2 months ago)
- Language: JavaScript
- Size: 313 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Generate Build Notes
Outputs pure-text build notes for your builds on GitHub. The generated notes can be attached to your build or sent to other services on subsequent steps or jobs for your users, testers, or other developers as a reference.
## Usage
### Using build notes in subsequent steps
```yaml
# ...jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read # This is required for zetavg/generate-build-notes-action to read details of pull requests
steps:
- name: Checkout code # Note that it's required to checkout the code before using zetavg/generate-build-notes-action
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Generate build notes
id: generate-build-notes
uses: zetavg/generate-build-notes-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
env:
BUILD_NOTES: ${{ steps.generate-build-notes.outputs.build-notes }}
run: |
# Your build commands here
# ...# Sample usage of the build notes
echo "$BUILD_NOTES" > build-notes.txt
cat build-notes.txt
```### Using build notes in subsequent jobs
```yaml
# ...jobs:
generate-build-notes:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read # This is required for zetavg/generate-build-notes-action to read details of pull requests
outputs:
build-notes: ${{ steps.generate-build-notes.outputs.build-notes }}
steps:
- name: Checkout code # Note that it's required to checkout the code before using zetavg/generate-build-notes-action
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Generate build notes
id: generate-build-notes
uses: zetavg/generate-build-notes-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}build-ios:
runs-on: ubuntu-latest
needs: generate-build-notes
steps:
- name: Build
env:
BUILD_NOTES: ${{ needs.generate-build-notes.outputs.build-notes }}
run: |
# Your build commands here
# ...# Sample usage of the build notes
echo "$BUILD_NOTES" > build-notes.txt
cat build-notes.txtbuild-android:
runs-on: ubuntu-latest
needs: generate-build-notes
steps:
- name: Build
env:
BUILD_NOTES: ${{ needs.generate-build-notes.outputs.build-notes }}
run: |
# Your build commands here
# ...# Sample usage of the build notes
echo "$BUILD_NOTES" > build-notes.txt
cat build-notes.txt
```## Generated Build Note Samples
### Push
```
Build of branch "main": add a awesome featureLatest commits:
• [11adb604] add a awesome feature - @user1
• [f52fdb2d] prepare adding a awesome feature - @user1
• [71427497] fix bug - Example User
```### Pull Request
```
Build of PR #1: This is the title of the PR (by @user1) [main ← example-branch]This is the description of the PR. [...]
Commits:
• [85007495] commit 1 - @user1
• [b8124acd] commit 2 - @user2
• [992841f2] commit 3 - @user1View pull request: https://github.com/user/repo/pull/1
```### Release
```
v1.2.3New Features
• Feature 1.
• Feature 2.
• Feature 3.
• Feature 4.Changes
• Change 1.
• Change 2.Bug Fixes
• Fix bug 1.
• Fix bug 2.See the full release note at https://github.com/user/repo/releases/tag/v1.2.3
```### Schedule
```
Scheduled build of branch "main"
Last commit: [5964e4b0] this is a commit message - @user
```### Workflow Dispatch
```
Manual build of "main", triggered by @user
Last commit: [5964e4b0] this is a commit message - @user
```