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:
oblomov 2023-06-17 12:48:50 +02:00 committed by GitHub
parent 7ec917e6f9
commit 61d6a23a69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 15 deletions

31
.github/workflows/build_downport.yaml vendored Normal file
View 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

View File

@ -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