diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 899707c..736b695 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,10 @@ name: Build & Deploy on: - push: - pull_request: - workflow_dispatch: + workflow_run: + workflows: ["Init"] + types: + - completed permissions: contents: read diff --git a/.github/workflows/init.yml b/.github/workflows/init.yml new file mode 100644 index 0000000..195cd29 --- /dev/null +++ b/.github/workflows/init.yml @@ -0,0 +1,15 @@ +# Initializes the "build and deploy" workflow to have access to github secrets in that workflow +name: Init + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - name: Init + run: | + echo "Initialized"