chore: upgrade to actions/checkout v2

This commit is contained in:
Clare Liguori
2020-01-01 15:07:54 -08:00
parent c2cc6055b3
commit be8d1ecb70
2 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1.0.0 uses: actions/checkout@v2
- name: Run tests - name: Run tests
run: | run: |
npm ci npm ci
+1 -4
View File
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v2
with: with:
ref: master ref: master
- name: Package - name: Package
@@ -22,9 +22,6 @@ jobs:
- name: Commit - name: Commit
run: | run: |
git config --global user.name "GitHub Actions" git config --global user.name "GitHub Actions"
git remote set-url origin https://x-access-token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY
git add dist/ git add dist/
git commit -m "Update dist" || echo "No changes to commit" git commit -m "Update dist" || echo "No changes to commit"
git push origin HEAD:master git push origin HEAD:master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}