From b4c809db414c43d596b6ae20009480deb7ff2d08 Mon Sep 17 00:00:00 2001 From: Henning Bredel Date: Thu, 4 Jul 2024 08:46:54 +0200 Subject: [PATCH] Adjust action to build feature branch --- .github/workflows/build.yml | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 33bc47d694..8cd1c38815 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,9 +7,9 @@ concurrency: cancel-in-progress: true # Controls when the workflow will run on: - # Triggers the workflow on push events but only for the master branch + # Triggers the workflow on push events but only for the feature/plasticops_trigger-ai-inference branch push: - branches: [ master ] + branches: [ feature/plasticops_trigger-ai-inference ] paths: - "VERSION" - "geonode_mapstore_client/client/**" @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "Checking out" - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Checkout submodules run: git submodule update --init --recursive @@ -34,7 +34,7 @@ jobs: # SET UP ######### - name: "Setting up npm" - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: '12.x' @@ -42,7 +42,7 @@ jobs: # CACHING ########## - name: "Cache node modules" - uses: actions/cache@v1 + uses: actions/cache@v3 env: cache-name: cache-node-modules with: @@ -70,17 +70,10 @@ jobs: - name: "Stage files" run: git add --all - - name: "Generate temp GitHub token" - uses: tibdex/github-app-token@v1 - id: generate-token - with: - app_id: ${{ secrets.TOKEN_APP_ID }} - private_key: ${{ secrets.TOKEN_APP_PRIVATE_KEY }} - - name: "Create Pull Request" - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@v5 with: - token: ${{ steps.generate-token.outputs.token }} - base: "master" - title: "new client build" + base: "feature/plasticops_trigger-ai-inference" + title: "[feature/plasticops_trigger-ai-inference] new client build" body: "Automated client build from GeoNode Client CI" + delete-branch: true