fix: remove watchdog config (#55) #108
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Image | |
on: | |
push: | |
branches: | |
- '**' | |
workflow_dispatch: | |
jobs: | |
update-image: | |
name: Update image | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Read image | |
id: image | |
run: |- | |
FROM=$(grep FROM ./Dockerfile | cut -d' ' -f2) | |
echo "::set-output name=from::$FROM" | |
echo "::notice title=Image::$FROM" | |
- name: Update image | |
run: |- | |
yq -i '.build_from[] = strenv(FROM)' jellyfin-server/build.yaml | |
env: | |
FROM: ${{ steps.image.outputs.from }} | |
- name: Commit to Dependabot branch | |
if: ${{ startsWith(github.ref_name, 'dependabot') }} | |
uses: EndBug/add-and-commit@v9 # You can change this to use a specific version. | |
with: | |
add: jellyfin-server/ | |
message: "chore(deps): update image to ${{ steps.image.outputs.from }}" | |
- name: Create Pull Request | |
if: ${{ !startsWith(github.ref_name, 'dependabot') }} | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
title: "chore(deps): update image to ${{ steps.image.outputs.from }} on ${{ github.ref_name }}" | |
commit-message: "chore(deps): update image to ${{ steps.image.outputs.from }}" | |
body: "Updated jellyfin-server/build.yaml from the Dockerfile" | |
branch: jellyfin--${{ github.ref_name }} | |
delete-branch: true | |
labels: dependencies,docker |