Skip to content

Commit

Permalink
CI: Replace explicit versions for actions with only major
Browse files Browse the repository at this point in the history
Where possible. This will hopefully reduce dependabot churn (assuming it
supports this--unclear), and also compensates for the fact that
dependabot is not issuing updates for actions versions within our own
composite actions.
  • Loading branch information
dopplershift committed Nov 24, 2021
1 parent d3ae490 commit 2d1cd9d
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/actions/install-conda/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ runs:
using: composite
steps:
- name: Setup conda caching
uses: actions/cache@v2.1.6
uses: actions/cache@v2
with:
path: ~/conda_pkgs_dir
key: conda-${{ inputs.type }}-${{ runner.os }}-${{ inputs.python-version}}-${{ hashFiles('ci/*') }}
Expand All @@ -21,7 +21,7 @@ runs:
conda-${{ inputs.type }}-
- name: Set up Python ${{ inputs.python-version }}
uses: conda-incubator/setup-miniconda@v2.1.1
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
miniforge-variant: mambaforge
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/install-pypi/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
using: composite
steps:
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v2
with:
python-version: ${{ inputs.python-version }}
cache: 'pip'
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ runs:

- name: Upload coverage
if: ${{ always() && inputs.upload-coverage == 'true' }}
uses: codecov/codecov-action@v2.1.0
uses: codecov/codecov-action@v2
with:
name: ${{ inputs.key }}
2 changes: 1 addition & 1 deletion .github/actions/setup-proj/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runs:
using: composite
steps:
- name: Set up caching
uses: actions/cache@v2.1.6
uses: actions/cache@v2
id: cache-proj
with:
path: ~/${{ inputs.install-path }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2.4.0
uses: actions/checkout@v2

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v2.4.0
uses: actions/checkout@v2
with:
fetch-depth: 100

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v2.4.0
uses: actions/checkout@v2
with:
fetch-depth: 100

Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
run: echo "DOC_VERSION=v${{ needs.Docs.outputs.doc-version }}" >> $GITHUB_ENV

- name: Upload to GitHub Pages
uses: peaceiris/actions-gh-pages@v3.8.0
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.GHPAGES_DEPLOY_KEY }}
publish_dir: ./docs/build/html
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
name: Flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v2

- name: Set up Python 3
uses: actions/setup-python@v2.3.0
uses: actions/setup-python@v2
with:
python-version: 3.x
cache: 'pip'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v2.4.0
uses: actions/checkout@v2
with:
fetch-depth: 100

Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v2.4.0
uses: actions/checkout@v2
with:
fetch-depth: 100

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
url: https://pypi.org/project/MetPy/
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v2
with:
fetch-depth: 10

- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- name: Set up Python
uses: actions/setup-python@v2.3.0
uses: actions/setup-python@v2
with:
python-version: 3.x

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v2.4.0
uses: actions/checkout@v2
with:
fetch-depth: 100

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v2.4.0
uses: actions/checkout@v2
with:
fetch-depth: 100

Expand Down

0 comments on commit 2d1cd9d

Please sign in to comment.