Skip to content

Commit 7f0df71

Browse files
authored
Bigin JSON: Fixing wrong path in git add / commit (#46)
1 parent f5c287b commit 7f0df71

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/generate-partners-json.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
curl --silent --request GET \
4242
--url 'https://www.zohoapis.eu/bigin/v2/Accounts/search?fields=Website,Logo,Description,Account_Name,Email,Partnership_Status,Promoted&criteria=((Partnership_Status:equals:Platinum%20Partner)and(Promoted:equals:true))' \
4343
--header "Authorization: Zoho-oauthtoken $ACCESS_TOKEN" \
44-
| jq '.data[] | {Account_Name, Logo, Website, Description, Promoted}' > platinum-partner.json
44+
| jq '.data[] | {Account_Name, Logo, Website, Description}' > platinum-partner.json
4545
4646
curl --silent --request GET \
4747
--url 'https://www.zohoapis.eu/bigin/v2/Accounts/search?fields=Website,Logo,Description,Account_Name,Email,Partnership_Status&criteria=((Partnership_Status:equals:Gold%20Partner)and(Promoted:equals:true))' \
@@ -107,17 +107,15 @@ jobs:
107107
cd armbian.github.io
108108
git checkout data
109109
mkdir -p data/
110-
111110
cp ${{ github.workspace }}/*.json data/
112-
113111
git config user.name "github-actions[bot]"
114112
git config --global user.email "[email protected]"
115-
git add platinum-partner.json gold-partner.json silver-partner.json maintainers.json
113+
git add data/platinum-partner.json data/gold-partner.json data/silver-partner.json data/maintainers.json
116114
git commit -m "Update of Bigin sourced JSON files" || echo "No changes to commit"
117115
git push
118116
119117
- name: "Run base-files update action"
120118
uses: peter-evans/repository-dispatch@v3
121119
with:
122120
token: ${{ secrets.GITHUB_TOKEN }}
123-
event-type: "Base files"
121+
event-type: "Base files"

0 commit comments

Comments
 (0)