From b187832b3ed87457c2c16540bec4b00a64ed94da 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 ++++++++++++++++++++ 1 file changed, 20 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