build: Bump checkout action from v1 to v2 (#789)

This commit is contained in:
BSKY 2019-12-28 23:32:17 +09:00 committed by Matan Kushner
parent 75b103a44a
commit 36cfbfcf03

View File

@ -15,7 +15,7 @@ jobs:
name: Rustfmt [Formatter] name: Rustfmt [Formatter]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
@ -33,7 +33,7 @@ jobs:
name: Clippy [Linter] name: Clippy [Linter]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
@ -50,7 +50,7 @@ jobs:
name: Cargo Audit [Security] name: Cargo Audit [Security]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
toolchain: stable toolchain: stable
@ -66,7 +66,7 @@ jobs:
name: Compile name: Compile
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
@ -90,7 +90,7 @@ jobs:
rust: [stable, nightly] rust: [stable, nightly]
steps: steps:
# Checkout the branch being tested # Checkout the branch being tested
- uses: actions/checkout@v1 - uses: actions/checkout@v2
# Install all the required dependencies for testing # Install all the required dependencies for testing
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
@ -158,7 +158,7 @@ jobs:
needs: [cargo_check] needs: [cargo_check]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@v2
- name: Pull the pre-built Docker image - name: Pull the pre-built Docker image
run: docker pull starshipcommand/starship-test run: docker pull starshipcommand/starship-test
- name: Fix file permissions - name: Fix file permissions
@ -176,7 +176,7 @@ jobs:
name: Publish Cargo Package name: Publish Cargo Package
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
@ -192,7 +192,7 @@ jobs:
name: Update Brew Formula name: Update Brew Formula
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- run: | - run: |
echo "https://matchai:$HOMEBREW_GITHUB_API_TOKEN@github.com" > ~/.git-credentials echo "https://matchai:$HOMEBREW_GITHUB_API_TOKEN@github.com" > ~/.git-credentials
git config --global credential.helper store git config --global credential.helper store
@ -235,7 +235,7 @@ jobs:
name: starship-x86_64-pc-windows-msvc.zip name: starship-x86_64-pc-windows-msvc.zip
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Install Rust toolchain - name: Install Rust toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
@ -284,7 +284,7 @@ jobs:
needs: github_build needs: github_build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
# These can be squashed when https://github.com/actions/download-artifact/issues/6 is closed # These can be squashed when https://github.com/actions/download-artifact/issues/6 is closed
- name: Download releases from github_build - name: Download releases from github_build