Skip to content

Commit

Permalink
Adjust action to build feature branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ridoo committed Jul 4, 2024
1 parent ac79252 commit b4c809d
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"
Expand All @@ -26,23 +26,23 @@ 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

###########
# SET UP
#########
- name: "Setting up npm"
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '12.x'

############
# CACHING
##########
- name: "Cache node modules"
uses: actions/cache@v1
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
Expand Down Expand Up @@ -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

0 comments on commit b4c809d

Please sign in to comment.