Skip to content

v2.1.0

v2.1.0 #5

Workflow file for this run

name: Deploy
on:
release:
types: [published]
workflow_call:
inputs:
branch:
type: string
required: false
secrets:
TRIGGER_URL:
required: true
env:
TRIGGER_URL: ${{ secrets.TRIGGER_URL }}
jobs:
deploy:
environment: ynab-repeating-export
runs-on: ubuntu-latest
steps:
- name: Deploy
run: |
if [ -n "${{ inputs.branch }}" ]; then
if [ "${{ inputs.branch }}" != "main" ] && [ "${{ inputs.branch }}" != "development" ]; then
TRIGGER_URL="${TRIGGER_URL}&branch=${{ inputs.branch }}"
fi
fi
curl -X GET "${TRIGGER_URL}"
shell: bash
env:
TRIGGER_URL: ${{ secrets.TRIGGER_URL }}