Add ability to provide shift parameter to the action

Signed-off-by: Miguel A. Cabrera Minagorri <mcabrera@vmware.com>
This commit is contained in:
Miguel A. Cabrera Minagorri
2022-04-11 18:08:23 +02:00
parent 5e7bf23e24
commit 2ab37dcb8c
2 changed files with 8 additions and 7 deletions

View File

@@ -1,13 +1,14 @@
name: Sync containers repositories
on:
# schedule:
# # Every day at 1 AM
# - cron: '0 1 * * *'
schedule:
# Every day at 1 AM
- cron: '0 1 * * *'
workflow_dispatch:
inputs:
tags:
description: 'Test manually'
shift:
description: 'Commits to shift if you edited the containers folder'
default: '0'
jobs:
build:
name: Trigger Site Rebuild
@@ -18,4 +19,4 @@ jobs:
with:
token: ${{ secrets.BITNAMI_BOT_SECRET }}
- name: Fetch
run: ./scripts/fetch-commits.sh
run: ./scripts/fetch-commits.sh ${{ github.event.inputs.shift }}