CI: add a workflow dispatch option to build from staging
If active it includes the staging repo, but doesn't upload the build in the end.
This commit is contained in:
parent
81f081a283
commit
cdda721492
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@ -4,6 +4,12 @@ on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
with_staging:
|
||||
description: 'Include the staging repo when building the installer'
|
||||
default: false
|
||||
required: false
|
||||
type: boolean
|
||||
schedule:
|
||||
- cron: '0 3 * * *'
|
||||
|
||||
@ -33,6 +39,12 @@ jobs:
|
||||
echo 'Server = https://repo.msys2.org/msys/$arch/' > /etc/pacman.d/mirrorlist.msys
|
||||
pacman-conf.exe
|
||||
|
||||
- name: Add staging repo
|
||||
if: ${{ github.event.inputs.with_staging }}
|
||||
shell: msys2 {0}
|
||||
run: |
|
||||
sed -i '1s|^|[staging]\nServer = https://repo.msys2.org/staging/\nSigLevel = Never\n|' /etc/pacman.conf
|
||||
|
||||
- name: Update using the main mirror & Check install
|
||||
run: |
|
||||
msys2 -c 'pacman --noconfirm -Suuy'
|
||||
@ -170,7 +182,7 @@ jobs:
|
||||
- test-docker-sfx
|
||||
- test-installer
|
||||
- test-sfx
|
||||
if: github.ref == 'refs/heads/main'
|
||||
if: github.ref == 'refs/heads/main' && !${{ github.event.inputs.with_staging }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/download-artifact@v3
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user