mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-09-04 02:05:48 -05:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
35 lines
921 B
YAML
35 lines
921 B
YAML
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@v5
|
|
|
|
- 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 "winutil-action@noreply.github.com"
|
|
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 }}
|