-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (39 loc) · 1.3 KB
/
wbstack.sync.trigger.yml
File metadata and controls
41 lines (39 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: wbstack sync
on:
workflow_dispatch:
inputs:
branch:
description: 'The branch name to run against'
required: true
default: 'not-main'
composer_update:
description: 'Also do a composer update (true/false)'
type: boolean
required: true
default: false
jobs:
sync_and_pr:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.0
with:
ref: ${{ github.event.inputs.branch }}
- name: run sync
if: ${{ !inputs.composer_update }}
run: ./sync.sh
- name: run sync with composer update
if: ${{ inputs.composer_update }}
run: ./sync.sh -u
- name: Show `git diff`` output
run: git diff
# For this action to work you must explicitly allow GitHub Actions to create pull requests.
# This setting can be found in a repository's settings under Actions > General > Workflow permissions.
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: wbstack sync for branch ${{ github.event.inputs.branch }}
commit-message: wbstack sync
branch: wbstack-sync/${{ github.event.inputs.branch }}
assignees: ${{ github.actor }}
delete-branch: true