* Try autoupdate as a dry run

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Harden workflow

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

* Remove dry run

Signed-off-by: Dave Thaler <dthaler@microsoft.com>

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
This commit is contained in:
Dave Thaler 2022-11-29 11:10:42 -08:00 коммит произвёл GitHub
Родитель a5e564f06d
Коммит 4a055129e1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 40 добавлений и 0 удалений

40
.github/workflows/autoupdate.yaml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,40 @@
# Copyright (c) Microsoft Corporation
# SPDX-License-Identifier: MIT
#
# See https://github.com/marketplace/actions/auto-update for documentation on this file.
name: autoupdate
# Controls when the action will run. Triggers the workflow on push # events
# but only for the main branch
on:
push:
branches: [ main ]
permissions:
contents: read
jobs:
autoupdate:
name: autoupdate
permissions:
contents: write # for Git to git push
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: docker://chinthakagodawita/autoupdate-action@sha256:a3e234f9fce69dd9b3a205acfd55bf9d5c94f0f7cf119f0267a5ab54220e8f56 # v1
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
PR_FILTER: "auto_merge"
PR_READY_STATE: "ready_for_review"
MERGE_MSG: "Branch was auto-updated."
- run: echo 'Merge conflicts found!'
if: ${{ steps.autoupdate.outputs.conflicted }}
- run: echo 'No merge conflicts'
if: ${{ !steps.autoupdate.outputs.conflicted }}