From c957db15af6ad76b4b57d78c717774d5f8fa8bc4 Mon Sep 17 00:00:00 2001 From: Niv Greenstein Date: Mon, 24 Feb 2025 15:39:28 +0200 Subject: [PATCH] ci: added postgis check slash command --- .github/workflows/postgis-check-command.yml | 32 +++++++++++++++++++++ .github/workflows/slash-command.yaml | 24 ++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .github/workflows/postgis-check-command.yml create mode 100644 .github/workflows/slash-command.yaml diff --git a/.github/workflows/postgis-check-command.yml b/.github/workflows/postgis-check-command.yml new file mode 100644 index 0000000..52379b6 --- /dev/null +++ b/.github/workflows/postgis-check-command.yml @@ -0,0 +1,32 @@ +name: postgis-check + +on: + workflow_dispatch: + inputs: + head-sha: + description: 'Reference to the branch to run against' + required: true + issue-number: + description: 'The issue-number of the slash command' + required: true + comment-creation-date: + description: 'The slash command creation date passed from the slash-command workflow' + required: true + versions: + description: 'Wanted postgis docker versions to check' + required: false + node-versions: + description: 'Node.js versions to check' + required: false + +jobs: + postgis_check: + uses: MapColonies/shared-workflows/.github/workflows/postgis-check-command.yml@master + secrets: inherit + with: + head-sha: ${{ inputs.head-sha }} + issue-number: ${{ inputs.issue-number }} + comment-creation-date: ${{ inputs.comment-creation-date }} + versions: ${{ inputs.versions }} + node-versions: ${{ inputs.node-versions }} + db-schema: dump_server diff --git a/.github/workflows/slash-command.yaml b/.github/workflows/slash-command.yaml new file mode 100644 index 0000000..b01cc7f --- /dev/null +++ b/.github/workflows/slash-command.yaml @@ -0,0 +1,24 @@ +name: Slash Command Dispatch + +on: + issue_comment: + types: [created] + +jobs: + get_comment_branch: + runs-on: ubuntu-latest + outputs: + head_sha: ${{ steps.set_base_ref.outputs.HEAD_SHA }} + steps: + - name: resolve pr refs + uses: xt0rted/pull-request-comment-branch@v3 + id: comment_branch + - name: Set base ref + id: set_base_ref + run: echo "HEAD_SHA=${{ steps.comment_branch.outputs.head_sha }}" >> $GITHUB_OUTPUT + slash_command_dispatch: + needs: [get_comment_branch] + uses: MapColonies/shared-workflows/.github/workflows/slash-command.yaml@master + secrets: inherit + with: + head-sha: ${{ needs.get_comment_branch.outputs.head_sha }}