-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
5b993ad
commit 7841f4b
Showing
8 changed files
with
97 additions
and
16,304 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Compile & Check | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
workflow_dispatch: # Manual trigger added | ||
workflow_call: # Allow other Actions to call this workflow | ||
|
||
jobs: | ||
Compile-and-Check: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout Sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Compile and Syntaxcheck winutil.ps1 | ||
shell: pwsh | ||
run: | | ||
Set-ExecutionPolicy Bypass -Scope Process -Force; ./Compile.ps1 | ||
continue-on-error: false # Directly fail the job on error, removing the need for a separate check |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Remove winutil.ps1 if included in a Push | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
check-and-delete-file: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check if winutil.ps1 exists | ||
id: check_existence | ||
run: | | ||
if [ -f "winutil.ps1" ]; then | ||
echo "winutil_exists=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "winutil_exists=false" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Delete winutil.ps1 if it exists | ||
if: steps.check_existence.outputs.winutil_exists == 'true' | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "winutil-action" | ||
git rm winutil.ps1 | ||
git commit -m "Delete winutil.ps1 as it is not allowed" | ||
git push origin HEAD:${{ github.ref }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
File renamed without changes.
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
Oops, something went wrong.