chore: test ci

This commit is contained in:
Nicolas Meienberger 2023-06-21 22:36:40 +02:00
parent a24ae08659
commit f68d5c0230

View File

@ -25,16 +25,14 @@ jobs:
with:
fetch-depth: 0
- name: Get list of updated files by the last commit in this branch separated by space
id: updated-files
run: |
echo "files=$(git diff-tree --no-commit-id --name-only -r $(git rev-parse HEAD) | tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Get changed files
uses: jitterbit/get-changed-files@v1
id: files
- name: Run renovate-app-version.sh on updated files
- name: Apply config update
run: |
IFS=' ' read -ra files <<< "${{ steps.updated-files.outputs.files }}"
for file in "${files[@]}"; do
for changed_file in ${{ steps.files.outputs.all }}; do
echo "Changed file: $changed_file"
if [[ $file == *"docker-compose.yml"* ]]; then
app_name=$(echo $file | cut -d'/' -f 2)
./.github/workflows/renovate-app-version.sh $app_name
@ -45,7 +43,7 @@ jobs:
run: |
git config --local user.email "github-actions@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add apps/*/config.json && git commit -m "Update app version [ready]" --no-verify && git push || echo "No changes to commit"
git add . && git commit -m "Update app version [ready]" --no-verify && git push || echo "No changes to commit"
ci:
needs: update-config