ci: Fixing the push step [skip ci]
This commit is contained in:
@@ -36,7 +36,8 @@ jobs:
|
|||||||
- name: Install Scoop
|
- name: Install Scoop
|
||||||
uses: MinoruSekine/setup-scoop@main
|
uses: MinoruSekine/setup-scoop@main
|
||||||
|
|
||||||
- name: Update and Publish Scoop Bucket
|
- name: Update Scoop Bucket
|
||||||
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
# Clean up previous version
|
# Clean up previous version
|
||||||
Remove-Item -Path './deployment/scoop/managarr.json' -ErrorAction SilentlyContinue
|
Remove-Item -Path './deployment/scoop/managarr.json' -ErrorAction SilentlyContinue
|
||||||
@@ -44,6 +45,11 @@ jobs:
|
|||||||
# Run packaging script
|
# Run packaging script
|
||||||
python "./deployment/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/scoop/managarr.json.template" "./deployment/scoop/managarr.json" ${{ env.WINDOWS_SHA }}
|
python "./deployment/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/scoop/managarr.json.template" "./deployment/scoop/managarr.json" ${{ env.WINDOWS_SHA }}
|
||||||
|
|
||||||
|
- name: Persist the new managarr.json to the repo
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
# Persist the scoop bucket changes into repo
|
# Persist the scoop bucket changes into repo
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
@@ -51,7 +57,9 @@ jobs:
|
|||||||
git commit -m "chore: Update Scoop bucket for version ${{ env.RELEASE_VERSION }} [skip ci]"
|
git commit -m "chore: Update Scoop bucket for version ${{ env.RELEASE_VERSION }} [skip ci]"
|
||||||
git push origin main
|
git push origin main
|
||||||
|
|
||||||
# Publish to Scoop
|
- name: Publish the updated bucket
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
cd ./deployment/scoop/
|
cd ./deployment/scoop/
|
||||||
scoop bucket add managarr-bucket https://github.com/Dark-Alex-17/managarr/tree/main/deployment/scoop
|
scoop bucket add managarr-bucket https://github.com/Dark-Alex-17/managarr/tree/main/deployment/scoop
|
||||||
scoop install managarr
|
scoop install managarr
|
||||||
|
|||||||
Reference in New Issue
Block a user