Skip to content

better handle filtered out MS peak lists #118

better handle filtered out MS peak lists

better handle filtered out MS peak lists #118

Workflow file for this run

name: btd
on:
workflow_dispatch:
inputs:
makeBundle:
type: boolean
description: Make bundle (needed for tests)
default: true
doTests:
type: boolean
description: Perform tests
default: true
push:
jobs:
build-test-matrix: # based on https://stackoverflow.com/a/75337311
strategy:
fail-fast: true
matrix:
R: [ 'release', 'oldrel' ]
name: Build ${{ matrix.R }}
uses: ./.github/workflows/do_bt.yml
with:
R: ${{ matrix.R }}
makeBundle: ${{ (github.event_name == 'push' || github.event.inputs.makeBundle == 'true') && matrix.R == 'release' }}
doTests: ${{ github.event_name == 'push' || github.event.inputs.doTests == 'true' }}
secrets: inherit
commit:
needs: build-test-matrix
runs-on: windows-latest
name: Update patRoonDeps
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
with:
repository: rickhelmus/patRoonDeps
token: ${{ secrets.PAT }}
- name: Get patch for release
uses: actions/download-artifact@v4
with:
name: patch-release
- name: Get patch for oldrel
uses: actions/download-artifact@v4
with:
name: patch-oldrel
- name: Apply patches
run: |
git apply patRoonDeps-release.diff
git apply patRoonDeps-oldrel.diff
- name: Push changes
env:
CI_COMMIT_MESSAGE: Automated GHA update
CI_COMMIT_AUTHOR: GHA
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "notvalid@someemail.com"
git add bin/
git add patRoonDeps*.tsv
git status
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
git tag -f prerelease
git push -f origin prerelease
release:
needs: build-test-matrix
runs-on: windows-latest
name: Make bundle pre-release
if: ${{ (github.event_name == 'push' || github.event.inputs.makeBundle == 'true') && github.ref == 'refs/heads/master' }}
steps:
- name: Get bundle
uses: actions/download-artifact@v4
with:
name: bundle
- name: Make pre-release
uses: ncipollo/release-action@v1
with:
tag: prerelease
name: 'Automated pre-release'
allowUpdates: true
artifactErrorsFailBuild: true
prerelease: true
commit: master
makeLatest: true
owner: rickhelmus
repo: patRoonDeps
body: 'This is an automated pre-release of the patRoon bundle. See the installation handbook for details.'
artifacts: |
patRoon-bundle-*.zip
removeArtifacts: true
replacesArtifacts: true
token: ${{ secrets.PAT }}