Skip to content

Commit

Permalink
Update update-index.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
siegrin authored Oct 18, 2024
1 parent 168ee19 commit 39f674f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/update-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repositori
- name: Checkout repository
uses: actions/checkout@v2

- name: Ambil semua folder
Expand All @@ -20,7 +20,7 @@ jobs:
FOLDERS=$(ls -d */ | grep -v '\.github\|node_modules' | sed 's/\/$//')
echo "folders=$(echo "$FOLDERS" | tr '\n' ' ')" >> $GITHUB_ENV
- name: Cek folder saat ini di index.html
- name: Cek folder di index.html
id: read_html
run: |
# Ambil semua folder yang sudah ada di index.html secara case-insensitive
Expand Down Expand Up @@ -67,14 +67,10 @@ jobs:
exit 0
fi
# Set git config untuk identitas
# Commit dan push perubahan
git config --global user.name "siegrin"
git config --global user.email "piubitt@gmail.com"
# Commit dan push perubahan
git add $OUTPUT_FILE
git commit -m "Reset dan sinkronkan folder di index.html dengan repositori"
- name: Push changes to GitHub
run: |
git commit -S -m "Reset dan sinkronkan folder di index.html dengan repositori" # Gunakan -S untuk commit yang ditandatangani
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/siegrin/JavaScript-Master.git

0 comments on commit 39f674f

Please sign in to comment.