forked from rapidez/rapidez
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (59 loc) · 1.82 KB
/
copy-laravel-source.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Copy Laravel source code
on:
workflow_dispatch:
schedule:
- cron: '30 0 * * 1'
jobs:
copy-laravel-source:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
path: "rapidez"
- name: Checkout the Laravel code
uses: actions/checkout@v2
with:
repository: "laravel/laravel"
path: "laravel"
- name: Copy the Laravel code over the Rapidez code
run: cp -rfv laravel/* rapidez/
- name: Keep Rapidez specific files
run: >
cd rapidez && git checkout
composer.json
README.md
CHANGELOG.md
routes/web.php
routes/api.php
resources/css/app.css
resources/js/app.js
public/favicon.ico
storage/app/public/.gitignore
- name: Remove unneeded files
run: >
cd rapidez && rm -rf
package.json
webpack.mix.js
vite.config.js
resources/js/bootstrap.js
resources/views/welcome.blade.php
app/Models
database/
config/sanctum.php
- name: Check if there are changes
id: has-changes
run: |
cd rapidez &&
if [[ -z $(cd rapidez && git status -s) ]]; then OUTPUT=1; else OUTPUT=0; fi
echo "::set-output name=RESULT::$OUTPUT"
- name: Create Pull Request
if: steps.has-changes.outputs.RESULT == 1
uses: peter-evans/create-pull-request@v3
with:
path: rapidez
title: Sync with Laravel source
body: Merge `laravel/laravel` with `rapidez/rapidez`, check for `composer.json` changes manually!
commit-message: Sync with Laravel source
branch: feature/sync-with-laravel-base
base: master