Commit on repository instead of PR

This commit is contained in:
SebClem 2024-09-10 13:48:02 +02:00
parent 43367602d9
commit 4d7be08b8c
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50

View File

@ -198,28 +198,26 @@ jobs:
cp addon/nextcloud_backup/config.yml repository/nextcloud_backup/ cp addon/nextcloud_backup/config.yml repository/nextcloud_backup/
- name: Change version in config file - name: Change version in config file
uses: fjogeleit/yaml-update-action@main uses: fjogeleit/yaml-update-action@V0.15.0
with: with:
valueFile: 'repository/nextcloud_backup/config.yml' valueFile: "repository/nextcloud_backup/config.yml"
propertyPath: 'version' propertyPath: "version"
value: ${{ steps.branch-names.outputs.current_branch }}.${{ github.run_number}} value: ${{ steps.branch-names.outputs.current_branch }}.${{ github.run_number}}
commitChange: false commitChange: false
- name: Add image propertie - name: Add image propertie
uses: fjogeleit/yaml-update-action@main uses: fjogeleit/yaml-update-action@V0.15.0
with: with:
valueFile: 'repository/nextcloud_backup/config.yml' valueFile: "repository/nextcloud_backup/config.yml"
propertyPath: 'image' propertyPath: "image"
value: "ghcr.io/sebclem/hassio-nextcloud-backup/{arch}" value: "ghcr.io/sebclem/hassio-nextcloud-backup/{arch}"
commitChange: false commitChange: false
- name: Create pull request - name: Commit and push
uses: peter-evans/create-pull-request@v6 uses: actions-js/push@v1.5
with: with:
token: ${{ secrets.PAT_PR }} github_token: ${{ secrets.PAT_PR }}
path: "repository" directory: "repository"
commit-message: "Update Nextcloud Backup to ${{ steps.branch-names.outputs.current_branch }}.${{ github.run_number }}" message: "Update Nextcloud Backup to ${{ steps.branch-names.outputs.current_branch }}.${{ github.run_number }}"
branch: "update/bextcloud_backup/${{ steps.branch-names.outputs.current_branch }}.${{ github.run_number }}" branch: "${{ steps.branch-names.outputs.current_branch }}"
base: "${{ steps.branch-names.outputs.current_branch }}" repository: "Sebclem/sebclem-hassio-addon-repository"
title: "Update Nextcloud Backup to ${{ steps.branch-names.outputs.current_branch }}.${{ github.run_number }}"