From 8e317296c628b9c0a96bd4598b094d130aea9e58 Mon Sep 17 00:00:00 2001 From: Artem Pelenitsyn Date: Sun, 24 Dec 2023 12:23:31 -0500 Subject: [PATCH] Add validate-revision workflow It can be started manually to check that certain version bumps build fine. It will ask to input an allow-newer line and a constraint line, which it will add to the cabal.project file. For example: the "filepath" allow-newer line and "filepath == 1.5" constraints line will make sure that the build plan will have `filepath` at version 1.5. --- .github/workflows/validate-revision.yml | 20 ++++++++++++++++++++ .github/workflows/validate.yml | 1 + 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/validate-revision.yml diff --git a/.github/workflows/validate-revision.yml b/.github/workflows/validate-revision.yml new file mode 100644 index 00000000000..526f88b1b4e --- /dev/null +++ b/.github/workflows/validate-revision.yml @@ -0,0 +1,20 @@ +name: Validate Revision + +on: + workflow_dispatch: + inputs: + allow-newer: + description: allow-newer line + required: true + type: string + constraints: + description: constraints line + required: true + type: string +env: + ALLOWNEWER: ${{ github.event.inputs.allow-newer }} + CONSTRAINTS: ${{ github.event.inputs.constraints }} + +jobs: + validate-main: + uses: ./.github/workflows/validate.yml diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 5a30dfed233..247978a9289 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -30,6 +30,7 @@ on: release: types: - created + workflow_call: env: # We choose a stable ghc version across all os's