Skip to content

Commit

Permalink
fix: consolidate frontend build and inputs (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
Encord-davids authored Sep 8, 2023
1 parent 9bcd754 commit ca0afea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
14 changes: 10 additions & 4 deletions .github/actions/build-frontend/action.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: "Build frontend"
description: "Sets up Python, Poetry and dependencies"

inputs:
secrets:
description: "Pass secrets here"
required: true

runs:
using: "composite"

steps:
- name: Set additional Environment variables
uses: ./.github/actions/write-env-vars
with:
secrets: ${{ toJSON(secrets) }}
- name: "Write env vars"
run: |
echo VITE_ROLLBAR_ACCESS_TOKEN=${{ fromJSON(inputs.secrets).ROLLBAR_ACCESS_TOKEN }} >> $GITHUB_ENV
echo VITE_CODE_VERSION=${{ github.ref_name }} >> $GITHUB_ENV
shell: bash

- name: Use Node.js
uses: actions/setup-node@v3
Expand Down
17 changes: 0 additions & 17 deletions .github/actions/write-env-vars/action.yml

This file was deleted.

0 comments on commit ca0afea

Please sign in to comment.