Skip to content

Commit

Permalink
fix: Confirm that README is updated in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
OS-pedrogustavobilro committed Jan 9, 2025
1 parent bd0d947 commit b0ca0c4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/reusable_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ jobs:
- name: 'Setup Tools'
uses: ./.github/actions/setup-tools

- name: 'Build Packages'
- name: 'Copy original README.md'
run: cp README.md README.md.original

- name: 'Build Packages (and update docs)'
working-directory: ./packages/capacitor-plugin
run: npm run build
run: npm run build

- name: Check README.md changes
run: |
if ! cmp --silent README.md README.md.original; then
echo "Detected README.md changes; Do 'npm run build' and commit the change."
exit 1
fi

0 comments on commit b0ca0c4

Please sign in to comment.