mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 09:12:58 +01:00
Commit on repository instead of PR
This commit is contained in:
parent
43367602d9
commit
4d7be08b8c
44
.github/workflows/build_addon.yml
vendored
44
.github/workflows/build_addon.yml
vendored
@ -89,7 +89,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
arch: [ aarch64, amd64, armv7 ]
|
||||
arch: [aarch64, amd64, armv7]
|
||||
include:
|
||||
- arch: aarch64
|
||||
arch_value: linux/arm64/v8
|
||||
@ -128,11 +128,11 @@ jobs:
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
labels: |
|
||||
io.hass.name=${{env.NAME}}
|
||||
io.hass.description=${{env.DESCRIPTION}}
|
||||
io.hass.url=${{env.URL}}
|
||||
io.hass.arch=${{matrix.arch}}
|
||||
io.hass.type=addon
|
||||
io.hass.name=${{env.NAME}}
|
||||
io.hass.description=${{env.DESCRIPTION}}
|
||||
io.hass.url=${{env.URL}}
|
||||
io.hass.arch=${{matrix.arch}}
|
||||
io.hass.type=addon
|
||||
|
||||
- name: Debug Env
|
||||
run: |
|
||||
@ -176,8 +176,8 @@ jobs:
|
||||
- name: Checkout Hass repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: Sebclem/sebclem-hassio-addon-repository
|
||||
path: "repository"
|
||||
repository: Sebclem/sebclem-hassio-addon-repository
|
||||
path: "repository"
|
||||
|
||||
- name: Get branch names
|
||||
id: branch-names
|
||||
@ -198,28 +198,26 @@ jobs:
|
||||
cp addon/nextcloud_backup/config.yml repository/nextcloud_backup/
|
||||
|
||||
- name: Change version in config file
|
||||
uses: fjogeleit/yaml-update-action@main
|
||||
uses: fjogeleit/yaml-update-action@V0.15.0
|
||||
with:
|
||||
valueFile: 'repository/nextcloud_backup/config.yml'
|
||||
propertyPath: 'version'
|
||||
valueFile: "repository/nextcloud_backup/config.yml"
|
||||
propertyPath: "version"
|
||||
value: ${{ steps.branch-names.outputs.current_branch }}.${{ github.run_number}}
|
||||
commitChange: false
|
||||
|
||||
- name: Add image propertie
|
||||
uses: fjogeleit/yaml-update-action@main
|
||||
uses: fjogeleit/yaml-update-action@V0.15.0
|
||||
with:
|
||||
valueFile: 'repository/nextcloud_backup/config.yml'
|
||||
propertyPath: 'image'
|
||||
valueFile: "repository/nextcloud_backup/config.yml"
|
||||
propertyPath: "image"
|
||||
value: "ghcr.io/sebclem/hassio-nextcloud-backup/{arch}"
|
||||
commitChange: false
|
||||
|
||||
- name: Create pull request
|
||||
uses: peter-evans/create-pull-request@v6
|
||||
- name: Commit and push
|
||||
uses: actions-js/push@v1.5
|
||||
with:
|
||||
token: ${{ secrets.PAT_PR }}
|
||||
path: "repository"
|
||||
commit-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 }}"
|
||||
base: "${{ steps.branch-names.outputs.current_branch }}"
|
||||
title: "Update Nextcloud Backup to ${{ steps.branch-names.outputs.current_branch }}.${{ github.run_number }}"
|
||||
|
||||
github_token: ${{ secrets.PAT_PR }}
|
||||
directory: "repository"
|
||||
message: "Update Nextcloud Backup to ${{ steps.branch-names.outputs.current_branch }}.${{ github.run_number }}"
|
||||
branch: "${{ steps.branch-names.outputs.current_branch }}"
|
||||
repository: "Sebclem/sebclem-hassio-addon-repository"
|
||||
|
Loading…
Reference in New Issue
Block a user