From 472f6957870e8903bfa331ef9f417320389ba9f9 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Sun, 21 May 2023 20:42:39 -0400 Subject: [PATCH] pretty sure this won't work --- .github/workflows/release-prs.yml | 11 ++++++++--- .github/workflows/release-tags.yml | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-prs.yml b/.github/workflows/release-prs.yml index 58928d1..2027427 100644 --- a/.github/workflows/release-prs.yml +++ b/.github/workflows/release-prs.yml @@ -1,6 +1,14 @@ name: Release PR on: + workflow_run: + workflows: ["Build artifacts"] + branches: + # NOTE: make sure any branches here are also valid directory names, + # otherwise creating the directory and uploading to s3 will fail + - "main" + types: + - completed pull_request: types: - opened @@ -10,9 +18,6 @@ on: jobs: release: - needs: - - build-artifacts-macOS - - build-artifacts-Linux concurrency: release # Only intra-repo PRs are allowed to have PR artifacts uploaded if: github.event.pull_request.head.repo.full_name == 'DeterminateSystems/nix-actions-cache' && contains(github.event.pull_request.labels.*.name, 'upload to s3') diff --git a/.github/workflows/release-tags.yml b/.github/workflows/release-tags.yml index bf3a86d..6128620 100644 --- a/.github/workflows/release-tags.yml +++ b/.github/workflows/release-tags.yml @@ -1,15 +1,20 @@ name: Release Tags on: + workflow_run: + workflows: ["Build artifacts"] + branches: + # NOTE: make sure any branches here are also valid directory names, + # otherwise creating the directory and uploading to s3 will fail + - "main" + types: + - completed push: tags: - "v*.*.*" jobs: release: - needs: - - build-artifacts-macOS - - build-artifacts-Linux concurrency: release runs-on: ubuntu-latest permissions: