Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 32 additions & 4 deletions .github/workflows/update-clients.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,20 @@ jobs:
fi

git add --all
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a

if ! git diff-index --quiet --cached HEAD; then
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
else
echo "No staged changes to commit."
exit 0
fi

if [ $? -eq 0 ]; then
git push --set-upstream origin ${GITHUB_SHA::8}
gh pr create --fill --base develop
else
echo "Nothing to commit."
exit 0
fi
env:
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
Expand Down Expand Up @@ -118,13 +125,20 @@ jobs:
fi

git add --all
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a

if ! git diff-index --quiet --cached HEAD; then
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
else
echo "No staged changes to commit."
exit 0
fi

if [ $? -eq 0 ]; then
git push --set-upstream origin ${GITHUB_SHA::8}
gh pr create --fill --base develop
else
echo "Nothing to commit."
exit 0
fi
env:
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
Expand Down Expand Up @@ -164,13 +178,20 @@ jobs:
fi

git add --all
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a

if ! git diff-index --quiet --cached HEAD; then
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
else
echo "No staged changes to commit."
exit 0
fi

if [ $? -eq 0 ]; then
git push --set-upstream origin ${GITHUB_SHA::8}
gh pr create --fill --base develop
else
echo "Nothing to commit."
exit 0
fi
env:
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
Expand Down Expand Up @@ -215,13 +236,20 @@ jobs:
fi

git add --all
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a

if ! git diff-index --quiet --cached HEAD; then
git commit -m "Commit: ${{ needs.title.outputs.title }}" -a
else
echo "No staged changes to commit."
exit 0
fi

if [ $? -eq 0 ]; then
git push --set-upstream origin ${GITHUB_SHA::8}
gh pr create --fill --base develop
else
echo "Nothing to commit."
exit 0
fi
env:
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
Loading