chore: test ci
This commit is contained in:
parent
a24ae08659
commit
f68d5c0230
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
@ -25,16 +25,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Get list of updated files by the last commit in this branch separated by space
|
- name: Get changed files
|
||||||
id: updated-files
|
uses: jitterbit/get-changed-files@v1
|
||||||
run: |
|
id: files
|
||||||
echo "files=$(git diff-tree --no-commit-id --name-only -r $(git rev-parse HEAD) | tr '\n' ' ')" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Run renovate-app-version.sh on updated files
|
- name: Apply config update
|
||||||
run: |
|
run: |
|
||||||
IFS=' ' read -ra files <<< "${{ steps.updated-files.outputs.files }}"
|
for changed_file in ${{ steps.files.outputs.all }}; do
|
||||||
|
echo "Changed file: $changed_file"
|
||||||
for file in "${files[@]}"; do
|
|
||||||
if [[ $file == *"docker-compose.yml"* ]]; then
|
if [[ $file == *"docker-compose.yml"* ]]; then
|
||||||
app_name=$(echo $file | cut -d'/' -f 2)
|
app_name=$(echo $file | cut -d'/' -f 2)
|
||||||
./.github/workflows/renovate-app-version.sh $app_name
|
./.github/workflows/renovate-app-version.sh $app_name
|
||||||
|
@ -45,7 +43,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "github-actions@users.noreply.github.com"
|
git config --local user.email "github-actions@users.noreply.github.com"
|
||||||
git config --local user.name "github-actions[bot]"
|
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:
|
ci:
|
||||||
needs: update-config
|
needs: update-config
|
||||||
|
|
Loading…
Reference in New Issue
Block a user