Skip to content

Commit

Permalink
ci: Update deprecated actions (#511)
Browse files Browse the repository at this point in the history
* ci: update depreated actions

* ci: replace deprecated set-output in workflow

According to https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
  • Loading branch information
kibidev committed Oct 22, 2022
1 parent 24b7673 commit bb09233
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Expand Up @@ -14,14 +14,14 @@ jobs:
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v1
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
Expand All @@ -40,9 +40,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install mypy & stubs packages
Expand All @@ -60,12 +60,12 @@ jobs:

steps:
- name: Set up Python 3.9
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Black
run: python -m pip install black
Expand All @@ -91,7 +91,7 @@ jobs:
id: sha
run: |
new_sha=$(git rev-parse HEAD)
echo "::set-output name=SHA::$new_sha"
echo "SHA=$new_sha" >> $GITHUB_OUTPUT
release:
name: Semantic Release
Expand All @@ -101,7 +101,7 @@ jobs:
if: github.repository == 'relekang/python-semantic-release'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ needs.beautify.outputs.new_sha }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/pr.yml
Expand Up @@ -12,15 +12,15 @@ jobs:
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v1
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
Expand All @@ -39,9 +39,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install mypy & stubs packages
Expand All @@ -53,7 +53,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v2
- uses: wagoid/commitlint-github-action@v5
6 changes: 3 additions & 3 deletions .github/workflows/stale.yml
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/stale@v3
- uses: actions/stale@v6
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 10
Expand All @@ -22,7 +22,7 @@ jobs:
then it will be assumed that the question has been resolved and
the issue will be automatically closed.
stale-issue-label: 'stale'
- uses: actions/stale@v3
- uses: actions/stale@v6
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 21
Expand All @@ -33,7 +33,7 @@ jobs:
there has been no activity in the last 3 weeks. It will not be
closed.
stale-issue-label: 'help-wanted'
- uses: actions/stale@v3
- uses: actions/stale@v6
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 21
Expand Down

0 comments on commit bb09233

Please sign in to comment.