Skip to content

Commit

Permalink
Update run_node.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andifahruddinakas authored Oct 23, 2024
1 parent 5feb180 commit 680dee6
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/run_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout kode dari repository
# Step 1: Checkout repository
- name: Checkout repository
uses: actions/checkout@v3

Expand All @@ -28,17 +28,10 @@ jobs:
- name: Run Node script
run: node index.js test.csv

# Step 5: Commit perubahan jika ada file yang diubah/dihasilkan
- name: Commit changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add .
git commit -m "Commit generated files from Node script" || echo "No changes to commit"
# Step 6: Push commit ke repository
- name: Push changes
uses: ad-m/github-push-action@v1
# Step 5: Commit changes jika ada perubahan pada file
- name: Commit and Push changes
uses: github-actions-x/commit@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Commit generated files from Node script"
push: true
branch: main # Sesuaikan dengan branch yang Anda gunakan

0 comments on commit 680dee6

Please sign in to comment.