Skip to content

Commit

Permalink
Improve on version-related file updates
Browse files Browse the repository at this point in the history
We stop doing dist vs. src checks on non-main,
  since main will always run `npm run build-dist`
We start changing `src/setup-beam.js` instead of `dist`,
  so local changes don't show changes to untouched elements
We improve on the commit message to show this was not
  a pull request or human
  • Loading branch information
paulo-ferraz-oliveira committed Jan 17, 2024
1 parent 9eaffcc commit 4170465
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@ jobs:
SHA=$(git rev-parse --short HEAD)
sed -i'.bak' \
-e "s/const setupBeamVersion = '.*'/const setupBeamVersion = '${SHA}'/g" \
dist/index.js
src/setup-beam.js
npm run build-dist
git config user.name "GitHub Actions"
git config user.email "actions@user.noreply.github.com"
git add src/setup-beam.js
git add dist/index.js
git commit -m "Update setup-beam version output to ${SHA}"
git commit -m "Automation: update setup-beam version output to ${SHA}"
git push origin main
check_integrity:
name: Expected local npm actions
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down

0 comments on commit 4170465

Please sign in to comment.