Skip to content

Bump actions version #1078

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Nov 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/arduino-stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Fetch downloads count form Arduino CDN using AWS Athena
id: fetch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- name: Fetch downloads count
id: fetch
uses: actions/github-script@0.2.0
uses: actions/github-script@v3
with:
github-token: ${{github.token}}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/i18n-nightly-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v2

- name: Install Go
uses: actions/setup-go@v2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/i18n-weekly-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v2

- name: Install Go
uses: actions/setup-go@v2
Expand All @@ -37,8 +37,9 @@ jobs:
TRANSIFEX_API_KEY: ${{ secrets.TRANSIFEX_API_KEY }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v2
uses: peter-evans/create-pull-request@v3
with:
commit-message: Updated translation files
title: Updated translation files
branch: i18n/translations-update
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2 changes: 1 addition & 1 deletion .github/workflows/link-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
architecture: "x64"

- name: Cache dependencies
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v1
with:
fetch-depth: 0

- name: build
env:
PACKAGE_NAME_PREFIX: ${{ github.workflow }}
run: goreleaser --snapshot

- name: Upload artifacts
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
with:
name: dist
path: dist
Expand All @@ -39,12 +41,14 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Download artifacts
uses: actions/download-artifact@v1
uses: actions/download-artifact@v2
with:
name: dist
# to ensure compatibility with v1
path: dist

- name: Import Code-Signing Certificates
env:
Expand Down Expand Up @@ -86,7 +90,7 @@ jobs:
perl -pi -w -e "s/.*${PACKAGE_FILENAME}/${CLI_CHECKSUM} ${PACKAGE_FILENAME}/g;" dist/*-checksums.txt

- name: Upload artifacts
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
with:
name: dist
path: dist
Expand All @@ -97,9 +101,11 @@ jobs:

steps:
- name: Download artifact
uses: actions/download-artifact@v1
uses: actions/download-artifact@v2
with:
name: dist
# to ensure compatibility with v1
path: dist

- name: upload
uses: docker://plugins/s3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
architecture: "x64"

- name: Cache dependencies
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v2

- name: Install Taskfile
uses: Arduino/actions/setup-taskfile@master
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 0

- name: Build
run: goreleaser

- name: Upload artifacts
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
with:
name: dist
path: dist
Expand All @@ -34,12 +36,14 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Download artifacts
uses: actions/download-artifact@v1
uses: actions/download-artifact@v2
with:
name: dist
# to ensure compatibility with v1
path: dist

- name: Import Code-Signing Certificates
env:
Expand Down Expand Up @@ -81,7 +85,7 @@ jobs:
perl -pi -w -e "s/.*arduino-cli_${TAG}_macOS_64bit.tar.gz/${CLI_CHECKSUM} arduino-cli_${TAG}_macOS_64bit.tar.gz/g;" dist/*-checksums.txt

- name: Upload artifacts
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
with:
name: dist
path: dist
Expand All @@ -92,12 +96,14 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Download artifact
uses: actions/download-artifact@v1
uses: actions/download-artifact@v2
with:
name: dist
# to ensure compatibility with v1
path: dist

- name: Read CHANGELOG
id: changelog
Expand All @@ -120,7 +126,7 @@ jobs:

- name: Create Github Release
id: create_release
uses: actions/create-release@master
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -131,7 +137,7 @@ jobs:
prerelease: ${{ steps.prerelease.outputs.IS_PRE }}

- name: Upload release files on Github
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- name: Mark stale
if: github.event_name == 'schedule'
uses: actions/github-script@0.2.0
uses: actions/github-script@v3
with:
github-token: ${{github.token}}
script: |
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:

- name: Mark active
if: github.event_name == 'issue_comment'
uses: actions/github-script@0.2.0
uses: actions/github-script@v3
with:
github-token: ${{github.token}}
script: |
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:

- name: Close stale
if: github.event_name == 'schedule'
uses: actions/github-script@0.2.0
uses: actions/github-script@v3
with:
github-token: ${{github.token}}
script: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
run: git config --global core.autocrlf false

- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v2

- name: Install Go
uses: actions/setup-go@v2
Expand Down Expand Up @@ -114,6 +114,8 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v1
with:
fetch-depth: 0

- name: build
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
architecture: "x64"

- name: Cache dependencies
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v2

- name: Install Taskfile
uses: Arduino/actions/setup-taskfile@master
Expand Down