ci: use bump config.json in main ci

This commit is contained in:
Nicolas Meienberger 2023-06-21 21:11:50 +02:00
parent cd0cd215ba
commit ca7320c3a6
3 changed files with 31 additions and 47 deletions

View File

@ -1,7 +1,7 @@
name: Tipi CI name: Tipi CI
on: on:
pull_request: pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled] types: [opened, synchronize, reopened, ready_for_review]
jobs: jobs:
get-last-commit-message: get-last-commit-message:
@ -15,9 +15,34 @@ jobs:
run: | run: |
echo "last_commit_message=$(git log -1 --pretty=%B)" >> $GITHUB_OUTPUT echo "last_commit_message=$(git log -1 --pretty=%B)" >> $GITHUB_OUTPUT
update-config:
needs: get-last-commit-message
if: github.event_name == 'pull_request' && contains(${{ needs.get-last-commit-message.outputs.last_commit_message }}, '[ready]') == false && contains(github.ref_name, 'renovate')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
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 ${{ github.sha }} | tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Run renovate-app-version.sh on updated files
run: |
IFS=' ' read -ra files <<< "${{ steps.updated-files.outputs.files }}"
for file in "${files[@]}"; do
if [[ $file == *"docker-compose.yml"* ]]; then
app_name=$(echo $file | cut -d'/' -f 2)
./.github/workflows/renovate-app-version.sh $app_name
fi
done
ci: ci:
needs: get-last-commit-message needs: get-last-commit-message
if: contains(${{ needs.get-last-commit-message.outputs.last_commit_message }}, '[ready]') == true || !contains(github.ref_name, 'renovate')
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -26,13 +51,13 @@ jobs:
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 18
- uses: pnpm/action-setup@v2.0.1 - uses: pnpm/action-setup@v2.0.1
name: Install pnpm name: Install pnpm
id: pnpm-install id: pnpm-install
with: with:
version: 7 version: 8
run_install: false run_install: false
- name: Get pnpm store directory - name: Get pnpm store directory

View File

@ -1,41 +0,0 @@
name: Update app version in Renovate Branches
on:
push:
branches: ["renovate/*"]
jobs:
update-app-version:
if: contains(github.event.head_commit.message, '[ready]') == false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.PERSONAL_TOKEN }}
- name: Configure repo
run: |
git config --local user.email "githubaction@githubaction.com"
git config --local user.name "github-action update-app-version"
- 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 ${{ github.sha }} | tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Run renovate-app-version.sh on updated files
run: |
IFS=' ' read -ra files <<< "${{ steps.updated-files.outputs.files }}"
for file in "${files[@]}"; do
if [[ $file == *"docker-compose.yml"* ]]; then
app_name=$(echo $file | cut -d'/' -f 2)
./.github/workflows/renovate-app-version.sh $app_name
fi
done
- name: Commit & Push Changes
run: |
git add "apps/*/config.json" && git commit -m "chore: update config.json version [ready]" --no-verify && git push || true

View File

@ -5,8 +5,8 @@
"exposable": true, "exposable": true,
"port": 8116, "port": 8116,
"id": "overseerr", "id": "overseerr",
"tipi_version": 5, "tipi_version": 6,
"version": "1.32.5", "version": "1.33.0",
"categories": ["media", "utilities"], "categories": ["media", "utilities"],
"description": "Overseerr is a free and open source software application for managing requests for your media library. It integrates with your existing services, such as Sonarr, Radarr, and Plex!", "description": "Overseerr is a free and open source software application for managing requests for your media library. It integrates with your existing services, such as Sonarr, Radarr, and Plex!",
"short_desc": "Request management and media discovery tool for the Plex ecosystem", "short_desc": "Request management and media discovery tool for the Plex ecosystem",