-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disabled comments, fixed tgui commit generation
- Loading branch information
1 parent
3d2efb4
commit 94b2735
Showing
1 changed file
with
18 additions
and
18 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 |
---|---|---|
|
@@ -154,7 +154,7 @@ jobs: | |
# Generate TGUI bundle | ||
./tgui/bin/tgui | ||
CHANGES=$(git diff --name-only --cached | wc -l) | ||
CHANGES=$(git diff | wc -l) | ||
if [ "$CHANGES" -gt 0 ] ; then | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "TGUI bundle Generation" | ||
|
@@ -168,20 +168,20 @@ jobs: | |
echo "merged_prs=${MERGED_PRS[@]}" >> $GITHUB_OUTPUT | ||
echo "END" | ||
- name: Comment on merged PRs | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
console.log('${{ steps.prepare_testmerge_branch.outputs.merged_prs }}') | ||
const mergedPRs = '${{ steps.prepare_testmerge_branch.outputs.merged_prs }}'.split(' '); | ||
console.log(mergedPRs); | ||
for (const prNumber of mergedPRs) { | ||
await github.rest.issues.createComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: parseInt(prNumber), | ||
body: 'Данный PR был добавлен в ветку "${{ env.TESTMERGE_BRANCH }}" для тестов. Он попадёт на сервер после деплоя.' | ||
}); | ||
console.log(`Commented on PR #${prNumber}`); | ||
} | ||
#- name: Comment on merged PRs | ||
# uses: actions/github-script@v7 | ||
# with: | ||
# github-token: ${{secrets.GITHUB_TOKEN}} | ||
# script: | | ||
# console.log('${{ steps.prepare_testmerge_branch.outputs.merged_prs }}') | ||
# const mergedPRs = '${{ steps.prepare_testmerge_branch.outputs.merged_prs }}'.split(' '); | ||
# console.log(mergedPRs); | ||
# for (const prNumber of mergedPRs) { | ||
# await github.rest.issues.createComment({ | ||
# owner: context.repo.owner, | ||
# repo: context.repo.repo, | ||
# issue_number: parseInt(prNumber), | ||
# body: 'Данный PR был добавлен в ветку "${{ env.TESTMERGE_BRANCH }}" для тестов. Он попадёт на сервер после деплоя.' | ||
# }); | ||
# console.log(`Commented on PR #${prNumber}`); | ||
# } |