mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 15:16:15 +08:00
github actions test (#286)
* test action * Update test2.yml * Update test2.yml * Update test2.yml * Update test2.yml * Update test2.yml * Update test2.yml * Update test2.yml * Update test2.yml * Update test2.yml * Update test2.yml * Create build_downport.yaml * Update build_downport.yaml
This commit is contained in:
parent
7ec917e6f9
commit
61d6a23a69
31
.github/workflows/build_downport.yaml
vendored
Normal file
31
.github/workflows/build_downport.yaml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: build_downport
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [_action_test]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_downport:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm run downport
|
||||||
|
- name: update downport repository
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
deploy_key: ${{ secrets.DEPLOY_KEY }}
|
||||||
|
external_repository: abap2UI5/abap2UI5-downport
|
||||||
|
user_name: 'github-actions[bot]'
|
||||||
|
user_email: 'github-actions[bot]@users.noreply.github.com'
|
||||||
|
publish_branch: main
|
||||||
|
force_orphan: true
|
||||||
|
publish_dir: ./build
|
||||||
|
|
36
.github/workflows/test2.yml
vendored
36
.github/workflows/test2.yml
vendored
|
@ -1,20 +1,26 @@
|
||||||
name: downport
|
name: Use a different repository directory
|
||||||
|
on:
|
||||||
on:
|
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [_action_test]
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
downport:
|
run:
|
||||||
|
name: Add a text file
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
# If you need to, you can check out your repo to a different location
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
path: './pathToRepo/'
|
||||||
- run: npm ci
|
|
||||||
- run: npm run downport
|
# You can make whatever type of change to the repo...
|
||||||
|
- run: echo "123" > ./pathToRepo/file.txt
|
||||||
|
|
||||||
|
# ...and then use the action as you would normally do, but providing the path to the repo
|
||||||
|
- uses: EndBug/add-and-commit@v9
|
||||||
|
with:
|
||||||
|
message: 'Add the very useful text file'
|
||||||
|
add: '*.txt --force'
|
||||||
|
cwd: './pathToRepo/'
|
||||||
|
new_branch: custom-new-branch
|
||||||
|
|
Loading…
Reference in New Issue
Block a user