Skip to content

Bump vite from 4.4.9 to 4.4.12 #480

Bump vite from 4.4.9 to 4.4.12

Bump vite from 4.4.9 to 4.4.12 #480

Workflow file for this run

on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
workflow_dispatch:
env:
# Setting an environment variable with the value of a configuration variable
tag_name: ${{
contains(github.event.pull_request.labels.*.name, 'deploy_5173') && 'deploy_5173' ||
(contains(github.event.pull_request.labels.*.name, 'deploy_5174') && 'deploy_5175' || '')
}}
jobs:
run_pull:
if: ${{ env.tag_name != '' }}

Check failure on line 15 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 15, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.tag_name != ''
name: run pull
runs-on: ubuntu-latest
steps:
- name: install ssh keys
# check this thread to understand why its needed:
# https://stackoverflow.com/a/70447517
run: |
echo env.tag_name
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.LXGR_DEPLOY_PRIV }}" > ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.LXGR_HOST }} > ~/.ssh/known_hosts
- name: connect and pull
run: ssh ${{ secrets.LXGR_USER }}@${{ secrets.LXGR_HOST }} "cd ~/$tag_name && git fetch && git checkout ${{ github.event.pull_request.base.ref }} && git pull && npm i && exit"
- name: cleanup
run: rm -rf ~/.ssh