Skip to content

Commit

Permalink
Merge of #9257
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Feb 18, 2025
2 parents 9591c00 + 21acd54 commit 28957e0
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 9 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/cd-deploy-nodes-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,9 @@ jobs:
# - on every push to the `main` branch
# - on every release, when it's published
# - on workflow_dispatch for manual deployments

# Determine which networks to deploy based on the trigger



:
set-matrix:
runs-on: ubuntu-latest
outputs:
networks: ${{ steps.set-networks.outputs.matrix }}
Expand Down Expand Up @@ -268,7 +265,7 @@ jobs:
permissions:
contents: "read"
id-token: "write"
if: ${{ !cancelled() && !failure() && ((github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'release' || github.event_name == 'workflow_dispatch') }}
if: ${{ !cancelled() && !failure() && github.repository_owner == 'ZcashFoundation' && ((github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'release' || github.event_name == 'workflow_dispatch') }}

steps:
- uses: actions/checkout@v4.2.2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/chore-delete-gcp-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ env:
jobs:
delete-resources:
name: Delete old GCP resources
if: github.repository_owner == 'ZcashFoundation'
runs-on: ubuntu-latest
permissions:
contents: 'read'
Expand Down Expand Up @@ -105,6 +106,7 @@ jobs:
# The same artifacts are used for both mainnet and testnet.
clean-registries:
name: Delete unused artifacts in registry
if: github.repository_owner == 'ZcashFoundation''

Check warning on line 109 in .github/workflows/chore-delete-gcp-resources.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/chore-delete-gcp-resources.yml#L109

got unexpected EOF while lexing end of string literal, expecting ''' [expression]
Raw output
.github/workflows/chore-delete-gcp-resources.yml:109:56: got unexpected EOF while lexing end of string literal, expecting ''' [expression]
runs-on: ubuntu-latest
permissions:
contents: 'read'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-unit-tests-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ jobs:
needs: [ test, install-from-lockfile-no-cache, check-cargo-lock, cargo-deny, unused-deps ]
# Only open tickets for failed or cancelled jobs that are not coming from PRs.
# (PR statuses are already reported in the PR jobs list, and checked by GitHub's Merge Queue.)
if: (failure() && github.event.pull_request == null) || (cancelled() && github.event.pull_request == null)
if: (failure() || cancelled()) && github.repository_owner == 'ZcashFoundation' && github.event.pull_request == null
runs-on: ubuntu-latest
steps:
- uses: jayqi/failed-build-issue-action@v1
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/docs-deploy-firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
if: github.repository_owner == 'ZcashFoundation'
id: auth
uses: google-github-actions/auth@v2.1.8
with:
Expand All @@ -114,11 +115,13 @@ jobs:
# TODO: remove this step after issue https://github.com/FirebaseExtended/action-hosting-deploy/issues/174 is fixed

- name: Add $GCP_FIREBASE_SA_PATH to env
if: github.repository_owner == 'ZcashFoundation'
run: |
# shellcheck disable=SC2002
echo "GCP_FIREBASE_SA_PATH=$(cat ${{ steps.auth.outputs.credentials_file_path }} | tr -d '\n')" >> "$GITHUB_ENV"
- name: Deploy Zebra book to firebase
if: github.repository_owner == 'ZcashFoundation'
uses: FirebaseExtended/action-hosting-deploy@v0.9.0
with:
firebaseServiceAccount: ${{ env.GCP_FIREBASE_SA_PATH }}
Expand Down Expand Up @@ -163,6 +166,7 @@ jobs:
# Setup gcloud CLI
- name: Authenticate to Google Cloud
if: github.repository_owner == 'ZcashFoundation'
id: auth
uses: google-github-actions/auth@v2.1.8
with:
Expand All @@ -171,11 +175,13 @@ jobs:

# TODO: remove this step after issue https://github.com/FirebaseExtended/action-hosting-deploy/issues/174 is fixed
- name: Add $GCP_FIREBASE_SA_PATH to env
if: github.repository_owner == 'ZcashFoundation'
run: |
# shellcheck disable=SC2002
echo "GCP_FIREBASE_SA_PATH=$(cat ${{ steps.auth.outputs.credentials_file_path }} | tr -d '\n')" >> "$GITHUB_ENV"
- name: Deploy internal docs to firebase
if: github.repository_owner == 'ZcashFoundation'
uses: FirebaseExtended/action-hosting-deploy@v0.9.0
with:
firebaseServiceAccount: ${{ env.GCP_FIREBASE_SA_PATH }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docs-dockerhub-description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:

jobs:
dockerHubDescription:
if: github.repository_owner == 'ZcashFoundation'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/sub-build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ env:
jobs:
build:
name: Build images
if: github.repository_owner == 'ZcashFoundation'
timeout-minutes: 210
runs-on: ubuntu-latest
environment: ${{ github.event_name == 'release' && 'prod' || 'dev' }}
Expand Down Expand Up @@ -111,7 +112,7 @@ jobs:
# DockerHub release and CI tags.
# This tag makes sure tests are using exactly the right image, even when multiple PRs run at the same time.
type=sha,event=push
# These CI-only tags support CI on PRs, the main branch, and scheduled full syncs.
# These CI-only tags support CI on PRs, the main branch, and scheduled full syncs.
# These tags do not appear on DockerHub, because DockerHub images are only published on the release event.
type=ref,event=pr
type=ref,event=branch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sub-ci-integration-tests-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ jobs:
lightwalletd-grpc-test,
get-block-template-test,
submit-block-test,
scan-task-commands-test,
test-scanner,
]
# Only open tickets for failed scheduled jobs, manual workflow runs, or `main` branch merges.
# (PR statuses are already reported in the PR jobs list, and checked by GitHub's Merge Queue.)
Expand Down

0 comments on commit 28957e0

Please sign in to comment.