Skip to content

Commit

Permalink
chore: build-only on depbot PR
Browse files Browse the repository at this point in the history
  • Loading branch information
valosnah committed Aug 18, 2023
1 parent cf03cc0 commit 61d08ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build-and-deploy-staging:
name: Call reusable workflow when pull request is created
if: github.event.pull_request.draft == false
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false }}
uses: Informasjonsforvaltning/workflows/.github/workflows/build-deploy-maven.yaml@main
with:
app_name: fdk-event-harvester
Expand All @@ -22,4 +22,12 @@ jobs:
GCP_SA_DIGDIR_FDK_GCR_KEY: ${{ secrets.GCP_SA_DIGDIR_FDK_GCR_KEY }}
DIGDIR_FDK_AUTODEPLOY: ${{ secrets.DIGDIR_FDK_DEV_AUTODEPLOY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
DEPENDABOT_SLACK_WEBHOOK_URL: ${{ secrets.DEPENDABOT_SLACK_WEBHOOK_URL }}

dependabot-build:
name: Build image on PR from dependabot
if: ${{ github.actor == 'dependabot[bot]' }}
uses: Informasjonsforvaltning/workflows/.github/workflows/build.yaml@main
with:
java_version: '17'
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
<relativePath/>
</parent>

Expand All @@ -29,7 +29,7 @@
<!--end standard properties-->

<kotlin.version>1.8.21</kotlin.version>
<testcontainers.version>1.18.1</testcontainers.version>
<testcontainers.version>1.18.3</testcontainers.version>
<jena.version>4.8.0</jena.version>
</properties>

Expand Down Expand Up @@ -125,13 +125,13 @@
<dependency>
<groupId>org.mockito.kotlin</groupId>
<artifactId>mockito-kotlin</artifactId>
<version>4.1.0</version>
<version>5.0.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock</artifactId>
<version>3.0.0-beta-8</version>
<version>3.0.0-beta-10</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit 61d08ce

Please sign in to comment.