Skip to content
Merged
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
16 changes: 14 additions & 2 deletions .github/workflows/auto-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
# Update README.md nightly at 4am UTC
- cron: "0 4 * * *"

permissions:
contents: write
pull-requests: write

jobs:
update:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -65,9 +69,10 @@ jobs:
- name: Create Pull Request
# This action will not create or change a pull request if there are no changes to make.
# If a PR of the auto-update/readme branch is open, this action will just update it, not create a new PR.
uses: cloudposse/actions/github/[email protected]
id: pr
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update README.md and docs
title: Update README.md and docs
body: |-
Expand All @@ -84,3 +89,10 @@ jobs:
auto-update
no-release
readme

- name: Check outputs
if: ${{ steps.pr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.pr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
cat README.md >> $GITHUB_STEP_SUMMARY
11 changes: 11 additions & 0 deletions .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ jobs:
- name: Generate readme
shell: bash
run: |
if [ ! -f README.yaml ]; then
echo "Project does not have a README.yaml. Skipping..."
exit 0
fi

# A Makefile is required for build-harness and rebuilding the README.md from the README.yaml and rebuilding the README.md from the README.yaml and rebuilding the README.md from the README.yaml and rebuilding the README.md from the README.yaml
if [ ! -f Makefile ]; then
echo "Project does not have a Makefile";
exit 1
fi

make init
make readme/build

Expand Down