Update .forgejo/workflows/CD.yml

This commit is contained in:
Matt Reeves 2024-07-23 21:48:22 -04:00
parent 31ae8971bf
commit 11c2c2c82d

View file

@ -35,14 +35,17 @@ jobs:
echo "::set-output name=continue::true" echo "::set-output name=continue::true"
fi fi
if: steps.set-condition.outputs.continue == 'true' conditional-deploy:
if: needs.deploy.outputs.continue == 'true'
runs-on: ubuntu-22.04
needs: deploy
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Deploy to hosts - name: Deploy to hosts
run: | run: |
IFS=' ' read -r -a folder_array <<< "${{ steps.detect-changes.outputs.folders }}" IFS=' ' read -r -a folder_array <<< "${{ needs.deploy.outputs.folders }}"
for folder in "${folder_array[@]}"; do for folder in "${folder_array[@]}"; do
case $folder in case $folder in
arrs) arrs)