Skip to content

Commit

Permalink
OPSEXP-2920 Run dependabot on forks workflow (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn authored Dec 11, 2024
1 parent 7e4658f commit be996b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_forks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ concurrency:
jobs:
pre-commit:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.fork
if: github.event.pull_request.head.repo.fork || github.actor == 'dependabot[bot]'
steps:
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]

Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/reusable_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ env:
jobs:
build:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down Expand Up @@ -66,15 +67,13 @@ jobs:

- name: Login to Quay.io
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
if: github.actor != 'dependabot[bot]'
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Log in to the Container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
if: github.actor != 'dependabot[bot]'
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand Down Expand Up @@ -122,17 +121,15 @@ jobs:
env:
ACS_VERSION: ${{ inputs.acs_version }}
TARGETARCH: ${{ inputs.acs_version == '23' && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
DOCKER_PUSH: ${{ github.actor != 'dependabot[bot]'}}
uses: docker/bake-action@2e3d19baedb14545e5d41222653874f25d5b4dfb # v5.10.0
with:
set: |
*.output=type=registry,push=${{ env.DOCKER_PUSH }}
*.output=type=registry,push=true
${{ steps.cache-targets.outputs.cache-set }}
build-matrix:
needs: build
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
outputs:
compose_matrix_json: ${{ steps.set-matrix.outputs.compose_matrix_json }}
helm_matrix_json: ${{ steps.set-matrix.outputs.helm_matrix_json }}
Expand All @@ -154,7 +151,6 @@ jobs:
compose-test:
needs: build-matrix
runs-on: ${{ matrix.edition == 'enterprise' && 'alfrescoPub-ubuntu2204-16G-4CPU' || 'ubuntu-latest' }}
if: github.actor != 'dependabot[bot]'
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.build-matrix.outputs.compose_matrix_json) }}
Expand Down Expand Up @@ -217,7 +213,6 @@ jobs:
helm-test:
needs: build-matrix
runs-on: ${{ matrix.arch == 'arm64' && 'alfrescoARM-ubuntu2404-16G-4CPU' || 'alfrescoPub-ubuntu2204-16G-4CPU' }}
if: github.actor != 'dependabot[bot]'
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.build-matrix.outputs.helm_matrix_json) }}
Expand Down

0 comments on commit be996b6

Please sign in to comment.