mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 13:57:05 +02:00
Some dev updates
* Bump electron version to 22.2.1 * Fix npm run electron command (needed the electron-packager-all command which I had removed) * Improve the npm run format command, no longer floods terminal with all file names * Updated start command to serve the built version of the game in .app * Remove some unused commands and unused workflows. Combined the ci and ci-pr workflows. * Modify check for generated files logic. Attempt to fix so it will edit its own comment instead of posting a new one on every commit.
This commit is contained in:
@@ -23,15 +23,6 @@ jobs:
|
||||
files: |
|
||||
dist/*
|
||||
index.html
|
||||
main.bundle.js
|
||||
main.bundle.js.map
|
||||
|
||||
- name: Check documentation changes
|
||||
id: changed-markdown-doc-files
|
||||
uses: tj-actions/changed-files@v18.4
|
||||
with:
|
||||
files: |
|
||||
markdown/*.md
|
||||
|
||||
- name: Warn when bundle files were changed
|
||||
id: warn-bundles-changed
|
||||
@@ -51,14 +42,14 @@ jobs:
|
||||
echo "Forbidden files included, generating warning"
|
||||
|
||||
touch comment.txt
|
||||
echo "## Generated build or documentation files were included. PRs should not normally contain any generated files." >> comment.txt
|
||||
echo "## Generated build files were included. PRs should not normally contain generated files." >> comment.txt
|
||||
echo "" >> comment.txt
|
||||
echo "Review the changes and ensure that including built files was necessary." >> comment.txt
|
||||
echo "Review the changes and ensure that including generated files was necessary." >> comment.txt
|
||||
|
||||
echo "Add pr label"
|
||||
gh --repo "${{ github.repository }}" \
|
||||
pr edit "${{ github.event.number }}" --add-label "$LABEL"
|
||||
echo "And comment on the pr"
|
||||
gh --repo "${{ github.repository }}" \
|
||||
pr comment "${{ github.event.number }}" --body-file comment.txt
|
||||
pr comment "${{ github.event.number }}" --body-file comment.txt --edit-last
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user