Skip to content

Commit 977c14c

Browse files
committed
Try this
1 parent e4c4242 commit 977c14c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/fetch-repos.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,8 @@ jobs:
3939
run: |
4040
git config --global user.name "Neurobagel Bot"
4141
git config --global user.email "neurobagel-bot[bot]@users.noreply.github.com"
42-
if [[ $(git diff --name-only) == "./src/assets/repos.json" ]]; then
43-
git add ./src/assets/repos.json
44-
git commit -m "Updated repos.json with latest repository names"
45-
git push origin feat-80
46-
else
47-
echo "No changes detected in repos.json"
48-
fi
42+
git add ./src/assets/repos.json
43+
git commit -m "Updated repos.json"
44+
git push origin feat-80
4945
env:
5046
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

0 commit comments

Comments
 (0)