name: Dependencies
on:
  push:
    branches:
      - master # run the action on your projects default branch
  pull_request:
    branches:
      - master # run the action on your projects default branch

jobs:
  build:
    name: Dependencies
    runs-on: ubuntu-latest
    permissions: # The Dependency Submission API requires write permission
      contents: write
    steps:
      - name: 'Checkout Repository'
        uses: actions/checkout@v3

      - name: Run snapshot action
        uses: mikepenz/gradle-dependency-submission@v1
        with:
          gradle-project-path: "."
          gradle-build-module: ":app"