-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f5cc6e
commit bc37622
Showing
1 changed file
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,13 +40,20 @@ jobs: | |
env: | ||
token: ${{ secrets.PAT }} | ||
run: | | ||
# Set Git configuration | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "OmicsFixID bot" | ||
# Stage all changes | ||
git add --all | ||
git status | ||
git commit -m "Updated data" -m "Artifact URL: ${{ github.event.client_payload.datasource }}" | ||
git push -f | ||
# Check the status and proceed only if there are changes | ||
if ! git diff-index --quiet HEAD; then | ||
# Commit changes | ||
git commit -m "Updated data" -m "Artifact URL: ${{ github.event.client_payload.datasource }}" | ||
# Push changes | ||
git push -f | ||
else | ||
echo "No changes to commit." | ||
fi | ||
- name: Update dataSourceVersion | ||
run: | | ||
new_date=${{ github.event.client_payload.date }} | ||
|
@@ -78,6 +85,12 @@ jobs: | |
git config --local user.email "[email protected]" | ||
git config --local user.name "OmicsFixID bot" | ||
git add --all | ||
git status | ||
git commit -m "Updated dataSourceVersion for $datasource" | ||
git push -f | ||
# Check the status and proceed only if there are changes | ||
if ! git diff-index --quiet HEAD; then | ||
# Commit changes | ||
git commit -m "Updated dataSourceVersion for $datasource" | ||
# Push changes | ||
git push -f | ||
else | ||
echo "No changes to commit." | ||
fi |