Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3307b1

Browse files
committed
chore: update actions versions
1 parent 7d5bef1 commit e3307b1

File tree

3 files changed

+29
-21
lines changed

3 files changed

+29
-21
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,26 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Check out ${{ github.repository }}
35-
uses: actions/checkout@v2
35+
uses: actions/checkout@v3
3636
with:
3737
persist-credentials: false
3838
- run: echo ${{ inputs.was-called }}
3939
- if: ${{ inputs.was-called }} == 'yes'
4040
run: |
4141
git pull --rebase
4242
- name: Check out CPython
43-
uses: actions/checkout@v2
43+
uses: actions/checkout@v3
4444
with:
4545
repository: python/cpython
4646
persist-credentials: false
4747
ref: ${{ env.CPYTHON_BRANCH }}
4848
path: cpython
49-
- name: Set up Python 3.9
50-
uses: actions/setup-python@v2
49+
- name: Set up Python 3.10
50+
uses: actions/setup-python@v4
5151
with:
52-
python-version: '3.9'
52+
python-version: '3.10'
53+
cache: 'pip'
54+
cache-dependency-path: '**/requirements*.txt'
5355
- name: Install dependencies
5456
run: |
5557
sudo apt update -y && sudo apt install gettext -y
@@ -87,7 +89,7 @@ jobs:
8789
path: cpython/Doc/build/html
8890
- name: Upload artifact - logs
8991
if: always()
90-
uses: actions/upload-artifact@v2
92+
uses: actions/upload-artifact@v3
9193
with:
9294
name: build-logs
9395
path: logs/

.github/workflows/compendium.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Check out ${{ github.repository }}
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818
with:
1919
persist-credentials: false
2020
- if: github.event_name == 'workflow_call'
2121
run: |
2222
git pull --rebase
23-
- name: Set up Python 3.9
24-
uses: actions/setup-python@v2
23+
- name: Set up Python 3.10
24+
uses: actions/setup-python@v4
2525
with:
26-
python-version: '3.9'
26+
python-version: '3.10'
2727
- name: Install dependencies
2828
run: |
2929
sudo apt update -y && sudo apt install gettext -y
@@ -33,7 +33,7 @@ jobs:
3333
run: |
3434
pocompendium --correct compendium.po *.po **/*.po
3535
- name: Upload artifact
36-
uses: actions/upload-artifact@v2
36+
uses: actions/upload-artifact@v3
3737
with:
3838
name: compendium
3939
path: compendium.po

.github/workflows/update.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,24 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Check out ${{ github.repository }}
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@v3
2929
- name: Check out CPython
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v3
3131
with:
3232
repository: python/cpython
3333
persist-credentials: false
3434
ref: ${{ env.CPYTHON_BRANCH }}
3535
path: cpython
36-
- name: Set up Python 3.9
37-
uses: actions/setup-python@v2
36+
- name: Set up Python 3.10
37+
uses: actions/setup-python@v4
3838
with:
39-
python-version: '3.9'
39+
python-version: '3.10'
40+
cache: 'pip'
41+
cache-dependency-path: '**/requirements*.txt'
4042
- name: Install Transifex CLI
4143
run: |
4244
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
43-
mv tx /usr/local/bin/tx
45+
working-directory: /usr/local/bin
4446
- name: Install dependencies
4547
run: |
4648
sudo apt update -y && sudo apt install gettext -y
@@ -85,15 +87,19 @@ jobs:
8587
run:
8688
echo "CURRENT_BRANCH=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV
8789
- name: Check out source branch (${{ env.CURRENT_BRANCH }})
88-
uses: actions/checkout@v2
90+
uses: actions/checkout@v3
8991
with:
9092
path: ${{ env.CURRENT_BRANCH }}
9193
persist-credentials: false
9294
- name: Check out target branch (${{ matrix.branch }})
93-
uses: actions/checkout@v2
95+
uses: actions/checkout@v3
9496
with:
9597
ref: ${{ matrix.branch }}
9698
path: ${{ matrix.branch }}
99+
- name: Set up Python 3.10
100+
uses: actions/setup-python@v4
101+
with:
102+
python-version: '3.10'
97103
- name: Install dependencies
98104
run: |
99105
sudo apt update -y && sudo apt install gettext -y
@@ -123,7 +129,7 @@ jobs:
123129
# Call the build workflow after updating
124130
name: call
125131
needs: [update]
126-
uses: python/python-docs-pt-br/.github/workflows/build.yml@3.10
132+
uses: ./.github/workflows/build.yml
127133
with:
128134
was-called: yes
129135
secrets:
@@ -134,4 +140,4 @@ jobs:
134140
# Call the compendium workflow after updating
135141
name: call
136142
needs: [update]
137-
uses: python/python-docs-pt-br/.github/workflows/compendium.yml@3.10
143+
uses: ./.github/workflows/compendium.yml

0 commit comments

Comments
 (0)