From f771347f7434ed63a4a07cc575f141fb35ec826f Mon Sep 17 00:00:00 2001 From: towhid Date: Sat, 2 Mar 2024 00:03:34 +0600 Subject: [PATCH] added env to action.yaml --- .github/actions/setup/action.yaml | 5 +++++ .github/workflows/continuous-integrations.yaml | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml index 0da7035..a3ca2af 100644 --- a/.github/actions/setup/action.yaml +++ b/.github/actions/setup/action.yaml @@ -1,5 +1,10 @@ name: 'Setup' description: "Setups Node.js and yarn to run GitHub Actions' jobs." +env: + BASE_URL: ${{ secrets.BASE_URL }} + USER_NAME: ${{ secrets.USER_NAME }} + USER_PASSWORD: ${{ secrets.USER_PASSWORD }} + DATABASE_NAME: ${{ secrets.DATABASE_NAME }} runs: using: 'composite' steps: diff --git a/.github/workflows/continuous-integrations.yaml b/.github/workflows/continuous-integrations.yaml index f878314..a58cb4b 100644 --- a/.github/workflows/continuous-integrations.yaml +++ b/.github/workflows/continuous-integrations.yaml @@ -43,10 +43,4 @@ jobs: uses: './.github/actions/setup' - name: 'Execute the build script' - run: 'yarn run build' - -env: - BASE_URL: ${{ secrets.BASE_URL }} - USER_NAME: ${{ secrets.USER_NAME }} - USER_PASSWORD: ${{ secrets.USER_PASSWORD }} - DATABASE_NAME: ${{ secrets.DATABASE_NAME }} \ No newline at end of file + run: 'yarn run build' \ No newline at end of file