forked from stellar/stellar-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
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
6ded455
commit 966023e
Showing
1 changed file
with
12 additions
and
0 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 |
---|---|---|
|
@@ -31,17 +31,29 @@ jobs: | |
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
- name: Check for changes | ||
id: changes | ||
run: | | ||
if git diff --quiet; then | ||
echo "::set-output name=changes::false" | ||
else | ||
echo "::set-output name=changes::true" | ||
fi | ||
- name: Create and push changes to new branch | ||
if: steps.changes.outputs.changes == 'true' | ||
run: | | ||
git checkout -b crowdin-copy-changes | ||
git add . | ||
git commit -m "chore: Copy ignored files using crowdin:copy" | ||
git push --set-upstream origin crowdin-copy-changes | ||
- name: Create Pull Request | ||
if: steps.changes.outputs.changes == 'true' | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: crowdin-copy-changes | ||
title: "Copy ignored files using crowdin:copy" | ||
body: "This PR was created by GitHub Actions to copy ignored files using the crowdin:copy command." | ||
labels: ['automation'] |