Skip to content

Commit

Permalink
Add draft of workflow to check dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Jun 5, 2024
1 parent 2ed0d0d commit 7fff297
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/pr-check-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Check dependency updates
on:
pull_request:
types: [opened, synchronize]
paths:
- '**/pom.xml'
- '!**/src/**/pom.xml'
workflow_dispatch:
inputs:
base_sha:
description: 'Base ref sha'
type: string
required: true
head_sha:
description: 'Head ref sha'
type: string
required: true

concurrency:
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'quarkusio/quarkus' }}

defaults:
run:
shell: bash

jobs:
check-dependencies:
runs-on: ubuntu-latest
steps:
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Checkout base ref
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.base_sha || github.event.pull_request.base.sha }}
path: quarkus-base
- name: Checkout head ref
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.head_sha || github.event.pull_request.head.sha }}
path: quarkus-head

0 comments on commit 7fff297

Please sign in to comment.