Skip to content

Commit

Permalink
[BRT-3747] - replace gradle dependency submission workflow (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
zsbutosi committed Mar 25, 2024
1 parent c1573ad commit 74ace06
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/gradle-dependency-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,18 @@ on:
workflow_dispatch:

jobs:
build:
name: Dependencies
dependency-submission:
runs-on: ubuntu-latest
permissions: # The Dependency Submission API requires write permission
contents: write
steps:
- name: Checkout Repository
uses: actions/[email protected]

- name: Setup Java
uses: actions/[email protected]
- name: Checkout sources
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17

- name: Run snapshot action
uses: mikepenz/[email protected]
with:
use-gradlew: true
gradle-build-module: buildSrc
sub-module-mode: COMBINED
include-build-environment: true
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v3
env:
PACKAGES_REPOSITORY: https://maven.pkg.github.com/${{ github.repository }}
PACKAGES_USERNAME: ${{ secrets.GIT_HUB_PACKAGES_ACTOR }}
PACKAGES_TOKEN: ${{ secrets.GIT_HUB_PACKAGES_TOKEN }}

0 comments on commit 74ace06

Please sign in to comment.