Skip to content

Commit

Permalink
add environment input to workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Winter-Hübenthal committed Jan 4, 2024
1 parent b579573 commit 5ce048f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/pumps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ name: Update Pumps in Supabase Storage

on:
workflow_dispatch:
inputs:
environment:
type: choice
description: Environment
required: true
options:
- 'production'
- 'development'
default: 'production'
repository_dispatch:
# This action can be triggered via Github API webook (see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#repository_dispatch)
types: [pumps_cron]
Expand All @@ -13,10 +22,12 @@ defaults:

jobs:
collect_pumps:
environment: "${{ github.event.client_payload.environment }}"
environment: "${{ github.event.client_payload.environment }} || ${{ github.event.inputs.environment }}"
runs-on: ubuntu-latest
name: A job to aggregate pumps data from open street maps and push to GDK Supabase
steps:
- name: Print environment
run: echo "${{ github.event.client_payload.environment }} || ${{ github.event.inputs.environment }}"
- name: Get the source
uses: actions/checkout@v4
- name: build the harvester
Expand Down

1 comment on commit 5ce048f

@vercel
Copy link

@vercel vercel bot commented on 5ce048f Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.