1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Replace deprecated github actions ::set-output (#6509)

* Replace deprecated github actions ::set-output

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Update to newer versions to remove notices

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix getting cache dir on windows

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-11-04 06:25:44 -07:00 committed by GitHub
parent 2370928ea7
commit 918a984b3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 99 additions and 102 deletions

View File

@ -14,20 +14,20 @@ jobs:
name: Add Card to Project(s)
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Get Event Type
run: echo $GITHUB_EVENT_NAME
- name: Assign NEW issues to project 1
uses: ./.github/actions/add-card-to-project
if: github.event_name == 'issues' && github.event.action == 'opened'
with:
project: 'https://github.com/orgs/lensapp/projects/1'
column_name: 'Backlog'
card_position: 'bottom'
project: "https://github.com/orgs/lensapp/projects/1"
column_name: "Backlog"
card_position: "bottom"
- name: Assign NEW pull requests to project 1
uses: ./.github/actions/add-card-to-project
if: github.event_name == 'pull_request_target' && github.event.action == 'opened'
with:
project: 'https://github.com/orgs/lensapp/projects/1'
column_name: 'PRs'
card_position: 'bottom'
project: "https://github.com/orgs/lensapp/projects/1"
column_name: "PRs"
card_position: "bottom"

View File

@ -14,7 +14,7 @@ jobs:
if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') }}
steps:
- name: Checkout Release from lens
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies

View File

@ -12,12 +12,12 @@ jobs:
node-version: [16.x]
steps:
- name: Checkout Release from lens
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

View File

@ -13,12 +13,12 @@ name: "CodeQL"
on:
push:
branches: [ master ]
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [master]
schedule:
- cron: '41 3 * * 2'
- cron: "41 3 * * 2"
jobs:
analyze:
@ -32,14 +32,14 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
language: ["javascript"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL

View File

@ -10,9 +10,9 @@ jobs:
build_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: "16"

View File

@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Golang
uses: actions/setup-go@v2
with:
go-version: '^1.18.0'
go-version: "^1.18.0"
- name: Install addlicense
run: |
export PATH=${PATH}:`go env GOPATH`/bin

View File

@ -10,12 +10,12 @@ jobs:
node-version: [16.x]
steps:
- name: Checkout Release from lens
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

View File

@ -23,12 +23,12 @@ jobs:
python-version: "3.x"
- name: Checkout Release from lens
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
@ -61,7 +61,7 @@ jobs:
pip install mike
- name: Checkout Release from lens
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
@ -71,7 +71,7 @@ jobs:
git config --local user.name "GitHub Action"
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
@ -88,7 +88,7 @@ jobs:
- name: Get the release version
if: contains(github.ref, 'refs/tags/v') && !github.event.release.prerelease
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: mkdocs deploy new release
if: contains(github.ref, 'refs/tags/v') && !github.event.release.prerelease

View File

@ -13,7 +13,7 @@ jobs:
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: "3.x"
- name: Install dependencies
run: |
@ -22,7 +22,7 @@ jobs:
pip install mike
- name: Checkout Release from lens
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
@ -31,8 +31,6 @@ jobs:
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: mkdocs delete version
run: |
mike delete --push ${{ github.event.inputs.version }}

View File

@ -25,13 +25,13 @@ jobs:
pip install mike
- name: Checkout Version from lens
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: "${{ github.event.inputs.version }}"
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
@ -41,7 +41,7 @@ jobs:
yarn typedocs-extensions-api
- name: Checkout master branch from lens
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: "master"
ref: "master"

View File

@ -13,7 +13,7 @@ jobs:
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: "3.x"
- name: Install dependencies
run: |
@ -22,7 +22,7 @@ jobs:
pip install mike
- name: Checkout Release from lens
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
@ -31,8 +31,6 @@ jobs:
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: mkdocs update default version
run: |
mike set-default --push ${{ github.event.inputs.version }}

View File

@ -17,12 +17,12 @@ jobs:
node-version: [16.x]
steps:
- name: Checkout Release
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

View File

@ -12,12 +12,12 @@ jobs:
node-version: [16.x]
steps:
- name: Checkout Release
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

View File

@ -13,7 +13,7 @@ jobs:
if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') }}
steps:
- name: Checkout Release from lens
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: butlerlogic/action-autotag@stable

View File

@ -6,7 +6,7 @@ jobs:
milestone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Require Milestone
run: |
exit $(gh pr view ${{ github.event.pull_request.number }} --json milestone | jq 'if .milestone == null then 1 else 0 end')

View File

@ -18,7 +18,7 @@ jobs:
node-version: [16.x]
steps:
- name: Checkout Release from lens
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
@ -28,15 +28,16 @@ jobs:
echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
shell: bash
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v2
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}