Skip to content

Commit

Permalink
chore: Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
somaromero committed Jul 30, 2024
1 parent e17b1eb commit bc13fec
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,4 @@ jobs:
- name: Check for changes in the src/ directory
run: |
git diff --exit-code src/
echo "changes=$(git diff --exit-code src/; echo $?)" >> $GITHUB_ENV
# Push changes in the /dist directory if there are changes in the src/ directory
- name: Push changes in the /dist directory
if: steps.check_changes.outputs.changes == '0'
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add dist/
git commit -m "Add built files from GitHub Actions [skip ci]"
git push
env:
GITHUB_TOKEN: ${{ secrets.DIRECTUS_REPO_TOKEN }}
echo "changes=$(git diff --exit-code src/; echo $?)" >> $GITHUB_ENV

0 comments on commit bc13fec

Please sign in to comment.