commit
c360ff3e93
|
@ -53,7 +53,7 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Auto Increment Semver Action
|
- name: Auto Increment Semver Action
|
||||||
uses: MCKanpolat/auto-semver-action@1.0.10
|
uses: MCKanpolat/auto-semver-action@b0314e8d64baee1c3f74233edb71eb976503a6a4 # 1.0.10
|
||||||
id: versioning
|
id: versioning
|
||||||
with:
|
with:
|
||||||
releaseType: prerelease
|
releaseType: prerelease
|
||||||
|
@ -66,14 +66,14 @@ jobs:
|
||||||
echo "Next Release version: ${{ steps.versioning.outputs.version }}"
|
echo "Next Release version: ${{ steps.versioning.outputs.version }}"
|
||||||
|
|
||||||
- name: Overwrite Version.txt file
|
- name: Overwrite Version.txt file
|
||||||
uses: DamianReeves/write-file-action@v1.2
|
uses: DamianReeves/write-file-action@0a7fcbe1960c53fc08fe789fa4850d24885f4d84 # v1.2
|
||||||
with:
|
with:
|
||||||
path: Winget-AutoUpdate/Version.txt
|
path: Winget-AutoUpdate/Version.txt
|
||||||
write-mode: overwrite
|
write-mode: overwrite
|
||||||
contents: ${{ steps.versioning.outputs.version }}
|
contents: ${{ steps.versioning.outputs.version }}
|
||||||
|
|
||||||
- name: Commit & Push
|
- name: Commit & Push
|
||||||
uses: actions-js/push@v1.4
|
uses: actions-js/push@156f2b10c3aa000c44dbe75ea7018f32ae999772 # v1.4
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: main
|
branch: main
|
||||||
|
@ -100,7 +100,7 @@ jobs:
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: "ncipollo/release-action@v1"
|
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 # v1.13.0
|
||||||
id: release
|
id: release
|
||||||
with:
|
with:
|
||||||
tag: "v${{ steps.versioning.outputs.version }}"
|
tag: "v${{ steps.versioning.outputs.version }}"
|
||||||
|
|
|
@ -31,7 +31,7 @@ jobs:
|
||||||
lfs: "true"
|
lfs: "true"
|
||||||
|
|
||||||
- name: Auto Increment Semver Action
|
- name: Auto Increment Semver Action
|
||||||
uses: MCKanpolat/auto-semver-action@1.0.10
|
uses: MCKanpolat/auto-semver-action@b0314e8d64baee1c3f74233edb71eb976503a6a4 # 1.0.10
|
||||||
id: versioning
|
id: versioning
|
||||||
with:
|
with:
|
||||||
releaseType: ${{ github.event.inputs.version }}
|
releaseType: ${{ github.event.inputs.version }}
|
||||||
|
@ -39,14 +39,14 @@ jobs:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Overwrite Version.txt file
|
- name: Overwrite Version.txt file
|
||||||
uses: DamianReeves/write-file-action@v1.2
|
uses: DamianReeves/write-file-action@0a7fcbe1960c53fc08fe789fa4850d24885f4d84 # v1.2
|
||||||
with:
|
with:
|
||||||
path: Winget-AutoUpdate/Version.txt
|
path: Winget-AutoUpdate/Version.txt
|
||||||
write-mode: overwrite
|
write-mode: overwrite
|
||||||
contents: "${{ steps.versioning.outputs.version }}"
|
contents: "${{ steps.versioning.outputs.version }}"
|
||||||
|
|
||||||
- name: Commit & Push
|
- name: Commit & Push
|
||||||
uses: actions-js/push@v1.4
|
uses: actions-js/push@156f2b10c3aa000c44dbe75ea7018f32ae999772 # v1.4
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: main
|
branch: main
|
||||||
|
@ -73,7 +73,7 @@ jobs:
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: "ncipollo/release-action@v1"
|
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 # v1.13.0
|
||||||
with:
|
with:
|
||||||
tag: "v${{ steps.versioning.outputs.version }}"
|
tag: "v${{ steps.versioning.outputs.version }}"
|
||||||
prerelease: ${{ github.event.inputs.pre-release }}
|
prerelease: ${{ github.event.inputs.pre-release }}
|
||||||
|
|
|
@ -44,7 +44,7 @@ jobs:
|
||||||
id: ml
|
id: ml
|
||||||
# You can override MegaLinter flavor used to have faster performances
|
# You can override MegaLinter flavor used to have faster performances
|
||||||
# More info at https://megalinter.github.io/flavors/
|
# More info at https://megalinter.github.io/flavors/
|
||||||
uses: oxsecurity/megalinter@v7
|
uses: oxsecurity/megalinter@b48455a119cc28045eee8f1e9d0a542a85e71f4f # v7.5.0
|
||||||
env:
|
env:
|
||||||
# All available variables are described in documentation
|
# All available variables are described in documentation
|
||||||
# https://megalinter.github.io/configuration/
|
# https://megalinter.github.io/configuration/
|
||||||
|
@ -71,7 +71,7 @@ jobs:
|
||||||
- name: Create Pull Request with applied fixes
|
- name: Create Pull Request with applied fixes
|
||||||
id: cpr
|
id: cpr
|
||||||
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
|
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
|
||||||
uses: peter-evans/create-pull-request@v5
|
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
|
||||||
commit-message: "[MegaLinter] Apply linters automatic fixes"
|
commit-message: "[MegaLinter] Apply linters automatic fixes"
|
||||||
|
@ -90,7 +90,7 @@ jobs:
|
||||||
run: sudo chown -Rc $UID .git/
|
run: sudo chown -Rc $UID .git/
|
||||||
- name: Commit and push applied linter fixes
|
- name: Commit and push applied linter fixes
|
||||||
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
|
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
|
||||||
uses: stefanzweifel/git-auto-commit-action@v5
|
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
|
||||||
with:
|
with:
|
||||||
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
|
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
|
||||||
commit_message: "[MegaLinter] Apply linters fixes"
|
commit_message: "[MegaLinter] Apply linters fixes"
|
||||||
|
|
Loading…
Reference in New Issue