From 7b1e3562fc1bfafe7871b87a2945c82216195d66 Mon Sep 17 00:00:00 2001 From: SX-9 <90962949+SX-9@users.noreply.github.com> Date: Wed, 12 Feb 2025 10:50:02 +0700 Subject: [PATCH] split step --- .github/workflows/db.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/db.yml b/.github/workflows/db.yml index e4b76ae..8646ad0 100644 --- a/.github/workflows/db.yml +++ b/.github/workflows/db.yml @@ -36,19 +36,23 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + + - name: Clone database repository + run: | + git clone https://github.com/partofmyid/database.git db + cd db + git config --global user.name 'github-actions' + git config --global user.email 'github-actions@github.com' + - name: Download database artifact uses: actions/download-artifact@v4 with: name: database - path: database.json + path: ./database.json - name: Commit and push database.json to database repository run: | - git clone https://github.com/partofmyid/database.git db - cd db - git config --global user.name 'github-actions' - git config --global user.email 'github-actions@github.com' - mv ../database.json ./database.json -f + ls -al git add database.json git commit -m 'Update database.json' git push