ci: do not use env

This commit is contained in:
thecodrr
2020-12-01 12:57:08 +05:00
parent ed5046ce1c
commit 7e422e9e4f
3 changed files with 4 additions and 7 deletions

View File

@@ -9,9 +9,8 @@ on:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
steps:
- run: echo "GH_DEPLOY_KEY=${{ secrets.GH_DEPLOY_KEY }}" >> $GITHUB_ENV
- name: Checkout 🛎️
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:

View File

@@ -5,10 +5,9 @@ on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
env:
GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
CI: true
steps:
- run: echo "GH_DEPLOY_KEY=${{ secrets.GH_DEPLOY_KEY }}" >> $GITHUB_ENV
- run: echo "CI=true" >> $GITHUB_ENV
- name: Checkout 🛎️
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:

View File

@@ -14,10 +14,9 @@ jobs:
lint:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- run: echo "GH_DEPLOY_KEY=${{ secrets.GH_DEPLOY_KEY }}" >> $GITHUB_ENV
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v1
- name: Use Node.js 12.x