From 252fbb829f2b2b0a961b513df27af2126214278c Mon Sep 17 00:00:00 2001 From: rndquu Date: Sun, 10 Mar 2024 15:12:44 +0300 Subject: [PATCH] ci: add init workflow --- .github/workflows/build.yml | 7 ++++--- .github/workflows/init.yml | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/init.yml 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"