Skip to content

Commit

Permalink
Upload the artifact by PR from non official repo
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Sep 12, 2023
1 parent d6143db commit a12af3a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker-build-test-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,10 @@ jobs:
name: aiida-core-base-${{ inputs.architecture }}
path: /tmp/aiida-core-base-${{ inputs.architecture }}.tar
retention-days: 3
if: ${{ !github.event.pull_request.head.repo.fork }}

- name: Upload aiida-core-with-services image as artifact 💾
uses: actions/upload-artifact@v3
with:
name: aiida-core-with-services-${{ inputs.architecture }}
path: /tmp/aiida-core-with-services-${{ inputs.architecture }}.tar
retention-days: 3
if: ${{ !github.event.pull_request.head.repo.fork }}
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
if: ${{ !github.event.pull_request.head.repo.fork }}

amd64-push-ghcr:
if: github.repository == 'aiidateam/aiida-core'
uses: ./.github/workflows/docker-push.yml
with:
architecture: amd64
Expand All @@ -46,6 +45,7 @@ jobs:
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
needs: [amd64-build]
if: ${{ !github.event.pull_request.head.repo.fork }}

arm64-push-ghcr:
uses: ./.github/workflows/docker-push.yml
Expand Down

0 comments on commit a12af3a

Please sign in to comment.