Skip to content

Commit

Permalink
Update sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
monrax authored May 1, 2024
1 parent da8ce7f commit 58e0c8a
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@ name: Sync CloudFormation templates

on:
workflow_dispatch:
inputs:
source_dir:
description: 'Directory to sync with AWS S3'
required: true
default: 'aws/eks'
dest_dir:
description: 'AWS S3 bucket folder to sync with'
required: true
default: 'ekstest'
exclude_pattern:
description: 'Pattern to exclude from sync process'
required: true
default: '*.html'

jobs:
sync_templates:
Expand All @@ -24,9 +37,9 @@ jobs:

- name: Sync bucket
env:
SOURCE_DIR: aws/eks
DEST_DIR: ekstest
EXCLUDE_PATTERN: aws/eks/html/*
SOURCE_DIR: ${{ github.event.inputs.source_dir }}
DEST_DIR: ${{ github.event.inputs.dest_dir }}
EXCLUDE_PATTERN: ${{ github.event.inputs.exclude_pattern }}
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_REGION: ${{ secrets.AWS_REGION }}
run: |
Expand Down

0 comments on commit 58e0c8a

Please sign in to comment.