Skip to content

Commit

Permalink
Disabled comments, fixed tgui commit generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladisvell committed Nov 4, 2024
1 parent 3d2efb4 commit 94b2735
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/testmerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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}`);
# }

0 comments on commit 94b2735

Please sign in to comment.