Skip to content

Commit b225551

Browse files
committed
Merge branch 'main' of https://github.com/atlaskb/models into issue_182_fixing_bican_biolink
2 parents 9ea9b81 + 8537959 commit b225551

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/reusable-generate_other_formats.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,16 @@ jobs:
104104
if ! git diff --cached --quiet; then
105105
git commit -m "generate another formats for ${models_list} model(s)"
106106
git status
107+
# Stash any remaining local changes (including untracked files) before pulling
108+
git stash --include-untracked
107109
if git pull --rebase; then
108110
git push
109111
else
110112
echo "Failed to pull --rebase, setting upstream"
111113
git push --set-upstream origin $BRANCH_NAME
112114
fi
115+
# Unstash the changes so they're available for the next workflow step
116+
git stash pop || echo "No stashed changes to apply"
113117
else
114118
echo "No changes to commit"
115119
fi

0 commit comments

Comments
 (0)