-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5feb180
commit 680dee6
Showing
1 changed file
with
6 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 |