mirror of
https://github.com/partofmyid/register.git
synced 2026-06-05 18:46:50 +07:00
split step
This commit is contained in:
parent
012f9b923b
commit
7b1e3562fc
1 changed files with 10 additions and 6 deletions
18
.github/workflows/db.yml
vendored
18
.github/workflows/db.yml
vendored
|
|
@ -36,19 +36,23 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Download database artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: database
|
||||
path: database.json
|
||||
|
||||
- name: Commit and push database.json to database repository
|
||||
- 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'
|
||||
mv ../database.json ./database.json -f
|
||||
|
||||
- name: Download database artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: database
|
||||
path: ./database.json
|
||||
|
||||
- name: Commit and push database.json to database repository
|
||||
run: |
|
||||
ls -al
|
||||
git add database.json
|
||||
git commit -m 'Update database.json'
|
||||
git push
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue