mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-03 21:37:26 +08:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3 to 4. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v3...v4) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: ajson mirror
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 0 * * 1'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
pr_ajson_changes:
|
|
# Origin repo only
|
|
permissions:
|
|
contents: write # for peter-evans/create-pull-request to create branch
|
|
pull-requests: write # for peter-evans/create-pull-request to create a PR
|
|
if: github.repository == 'abapGit/abapGit'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '16'
|
|
- name: run
|
|
run: |
|
|
git clone https://github.com/abapGit/ajson_mirror.git
|
|
ls -l
|
|
rm src/json/z*
|
|
cp ajson_mirror/src/z* src/json/
|
|
rm -rf ajson_mirror
|
|
git status
|
|
- name: Open PR
|
|
uses: peter-evans/create-pull-request@v4
|
|
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
|