mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-05-24 00:07:24 -05:00
pre-compile run
This commit is contained in:
parent
723e1a132d
commit
0bce9e2647
@ -35,7 +35,7 @@ jobs:
|
|||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
-d '{"state": "closed"}' \
|
-d '{"state": "closed"}' \
|
||||||
"https://api.github.com/repos/${{ github.repository }}/discussions/$discussion_id")
|
"https://api.github.com/repos/${{ github.repository }}/discussions/$discussion_id")
|
||||||
|
|
||||||
if echo "$response" | jq -e '.id' > /dev/null; then
|
if echo "$response" | jq -e '.id' > /dev/null; then
|
||||||
echo "Successfully closed discussion #$discussion_id"
|
echo "Successfully closed discussion #$discussion_id"
|
||||||
else
|
else
|
||||||
@ -45,4 +45,4 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
shell: bash
|
shell: bash
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
2
.github/workflows/compile-check.yaml
vendored
2
.github/workflows/compile-check.yaml
vendored
@ -19,4 +19,4 @@ jobs:
|
|||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
Set-ExecutionPolicy Bypass -Scope Process -Force; ./Compile.ps1
|
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
|
continue-on-error: false # Directly fail the job on error, removing the need for a separate check
|
||||||
|
4
.github/workflows/pre-release.yaml
vendored
4
.github/workflows/pre-release.yaml
vendored
@ -67,13 +67,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
$signature = Get-AuthenticodeSignature -FilePath ./winutil.ps1
|
$signature = Get-AuthenticodeSignature -FilePath ./winutil.ps1
|
||||||
if ($signature.Status -ne 'Valid') { throw "Code signing failed" }
|
if ($signature.Status -ne 'Valid') { throw "Code signing failed" }
|
||||||
|
|
||||||
- name: Upload winutil.ps1 as artifact
|
- name: Upload winutil.ps1 as artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: winutil
|
name: winutil
|
||||||
path: ./winutil.ps1
|
path: ./winutil.ps1
|
||||||
|
|
||||||
- name: Create and Upload Release
|
- name: Create and Upload Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
|
2
.github/workflows/remove-winutil.yaml
vendored
2
.github/workflows/remove-winutil.yaml
vendored
@ -31,4 +31,4 @@ jobs:
|
|||||||
git commit -m "Delete winutil.ps1 as it is not allowed"
|
git commit -m "Delete winutil.ps1 as it is not allowed"
|
||||||
git push origin HEAD:${{ github.ref }}
|
git push origin HEAD:${{ github.ref }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user