Skip to content

Commit 0514ee6

Browse files
authored
fix: generate action not working (#26520)
* fix: remove pip script and try using default version Currently we are using this script, which is now throwing an error: https://bootstrap.pypa.io/pip/3.6/get-pip.py * test python version * fix spacing * Update generate.yaml * Update generate.yaml * Update generate.yaml * Update generate.yaml * Update generate.yaml * Update generate.yaml * Update generate.yaml
1 parent c4c9bf5 commit 0514ee6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/generate.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ jobs:
3232
repository: googleapis/discovery-artifact-manager
3333
fetch-depth: 1
3434
path: discovery-artifact-manager
35+
- uses: actions/setup-python@v5
36+
with:
37+
python-version: 3.8.18
3538
- run: |
3639
sudo apt update
37-
sudo apt install python3
38-
echo "using $(python3 --version)"
39-
curl https://bootstrap.pypa.io/pip/3.6/get-pip.py -o get-pip.py
40-
python3 get-pip.py
40+
python3 --version
41+
pip install pip==21.3.1
42+
pip --version
4143
- run: ./google-api-java-client-services/.github/workflows/generate.sh ${{ matrix.service }}
4244
- uses: googleapis/code-suggester@v2 # takes the changes from git directory
4345
env:

0 commit comments

Comments
 (0)