From 61d6a23a69d8b772a73b2b91b6e5dbd957735ef3 Mon Sep 17 00:00:00 2001 From: oblomov <102328295+oblomov-dev@users.noreply.github.com> Date: Sat, 17 Jun 2023 12:48:50 +0200 Subject: [PATCH] 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 --- .github/workflows/build_downport.yaml | 31 +++++++++++++++++++++++ .github/workflows/test2.yml | 36 ++++++++++++++++----------- 2 files changed, 52 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/build_downport.yaml diff --git a/.github/workflows/build_downport.yaml b/.github/workflows/build_downport.yaml new file mode 100644 index 00000000..d6e08225 --- /dev/null +++ b/.github/workflows/build_downport.yaml @@ -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 + diff --git a/.github/workflows/test2.yml b/.github/workflows/test2.yml index a1839298..1e2a03b1 100644 --- a/.github/workflows/test2.yml +++ b/.github/workflows/test2.yml @@ -1,20 +1,26 @@ -name: downport - -on: +name: Use a different repository directory +on: push: - branches: [main] - -permissions: - contents: read + branches: [_action_test] jobs: - downport: + run: + name: Add a text file runs-on: ubuntu-latest - timeout-minutes: 10 + steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: '16' - - run: npm ci - - run: npm run downport + # If you need to, you can check out your repo to a different location + - uses: actions/checkout@v3 + with: + path: './pathToRepo/' + + # 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