diff --git a/.github/workflows/license_finder.yml b/.github/workflows/license_finder.yml index 91b501b..11bdd76 100644 --- a/.github/workflows/license_finder.yml +++ b/.github/workflows/license_finder.yml @@ -24,31 +24,27 @@ jobs: runs-on: 'ubuntu-latest' steps: - # Checking out the GitHub repository on the runner + # Checking out the GitHub license-finder repository on the runner - name: Checkout uses: 'actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608' with: + path: license-finder repository: m0-foundation/license-finder - - name: copy doc folder - run: | - cp -r doc . - + # Checking out the GitHub repository on the runner - name: Checkout uses: 'actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608' - - - name: List files - run: | - ls -la + with: + path: ${{ github.event.repository.name }} # Uses github action to pull docker image and run commands - #- name: Run the build process with Docker - # uses: 'addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185' - # with: - # username: ${{ vars.LICENSE_FINDER_GITLAB_REGISTRY_USERNAME }} - # password: ${{ secrets.LICENSE_FINDER_GITLAB_REGISTRY_PASSWORD }} - # registry: ${{ env.CONTAINER_REGISTRY }} - # image: ${{ env.CONTAINER_REGISTRY }}/crosslend/docker/license-finder/main - # run: | - # source /usr/share/rvm/scripts/rvm; license_finder --prepare --composer-check-require-only=true --decisions-file=/doc/dependency_decisions.yml --python-version=3 + - name: Run the build process with Docker + uses: 'addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185' + with: + username: ${{ vars.LICENSE_FINDER_GITLAB_REGISTRY_USERNAME }} + password: ${{ secrets.LICENSE_FINDER_GITLAB_REGISTRY_PASSWORD }} + registry: ${{ env.CONTAINER_REGISTRY }} + image: ${{ env.CONTAINER_REGISTRY }}/crosslend/docker/license-finder/main + run: | + source /usr/share/rvm/scripts/rvm; license_finder --prepare --composer-check-require-only=true --decisions-file=${{ github.event.repository.name }}/doc/dependency_decisions.yml --python-version=3