mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 11:46:38 +08:00
41 lines
976 B
YAML
41 lines
976 B
YAML
name: ajson mirror
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 0 * * 1'
|
|
|
|
jobs:
|
|
pr_ajson_changes:
|
|
# Origin repo only
|
|
if: github.repository == 'abapGit/abapGit'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
- name: run
|
|
run: |
|
|
git clone https://github.com/abapGit/ajson_mirror.git
|
|
ls -l
|
|
rm src/json/*
|
|
cp ajson_mirror/src/* src/json/
|
|
rm -rf ajson_mirror
|
|
git status
|
|
- name: Open PR
|
|
uses: peter-evans/create-pull-request@v3
|
|
with:
|
|
title: ajson, Automatic Update
|
|
branch: automatic/ajson
|
|
body: |
|
|
Automatic update from mirror
|
|
https://github.com/abapGit/ajson_mirror
|
|
|
|
Make manual change to trigger CI
|
|
|
|
Note: manual changes might be overwritten when the branch updates, so keep changes small, and merge fast
|