Skip to content

Commit

Permalink
Update all github actions we depend on
Browse files Browse the repository at this point in the history
  • Loading branch information
p2004a committed Feb 14, 2024
1 parent 717dc8e commit d2aa31e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: pip
cache-dependency-path: scripts/py/requirements.txt
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.18
cache: npm
cache-dependency-path: scripts/js/package-lock.json
- uses: actions/cache@v3
- uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: .maps-cache
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Test
run: source .envrc && make -j $(nproc) test
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: gen-artifacts
path: gen
Expand All @@ -57,9 +57,9 @@ jobs:
needs: build-and-test
if: vars.MAPS_METADATA_BUCKET_NAME && (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gen-artifacts
path: gen
Expand All @@ -86,24 +86,24 @@ jobs:
needs: build-and-test
if: vars.ENABLE_BYAR_CHOBBY_PUSH && ((github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gen-artifacts
path: gen
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: pip
cache-dependency-path: scripts/py/requirements.txt
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.18
cache: npm
cache-dependency-path: scripts/js/package-lock.json
- uses: actions/cache@v3
- uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: .maps-cache
Expand All @@ -113,7 +113,7 @@ jobs:
- name: Install dependencies
run: ./scripts/install.sh
- name: Checkout BYAR-Chobby
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/BYAR-Chobby
path: BYAR-Chobby
Expand Down Expand Up @@ -148,12 +148,12 @@ jobs:
if: vars.ENABLE_SPADS_CONFIG_PUSH && ((github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch')
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gen-artifacts
path: gen
- name: Checkout SPADS Config
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/spads_config_bar
path: spads_config_bar
Expand Down Expand Up @@ -185,24 +185,24 @@ jobs:
needs: build-and-test
if: vars.WEBFLOW_COLLECTION_ID && ((github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gen-artifacts
path: gen
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: pip
cache-dependency-path: scripts/py/requirements.txt
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.18
cache: npm
cache-dependency-path: scripts/js/package-lock.json
- uses: actions/cache@v3
- uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: .maps-cache
Expand All @@ -212,7 +212,7 @@ jobs:
- name: Install dependencies
run: ./scripts/install.sh
- name: Push to website
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
Expand All @@ -231,19 +231,19 @@ jobs:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gen-artifacts
path: gen
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: pip
cache-dependency-path: scripts/py/requirements.txt
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.18
cache: npm
Expand All @@ -252,7 +252,7 @@ jobs:
run: ./scripts/install.sh
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/187238959541/locations/global/workloadIdentityPools/github-actions/providers/github
service_account: [email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci_tools_map_syncer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
run:
working-directory: tools/map_syncer
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/sync_map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ jobs:
else
echo "pr_title=Update map ${to_sync} from rowy" >> $GITHUB_OUTPUT
fi
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_SELF_DEPLOY_KEY }}
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: pip
cache-dependency-path: scripts/py/requirements.txt
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.18
cache: npm
Expand All @@ -61,7 +61,7 @@ jobs:
run: ./scripts/install.sh
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/187238959541/locations/global/workloadIdentityPools/github-actions/providers/github
service_account: [email protected]
Expand All @@ -71,7 +71,7 @@ jobs:
make types
ts-node scripts/js/src/update_from_rowy.ts map_list.yaml ${{ steps.set_properties.outputs.map_to_sync }}
- name: Commit and create or update PR
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update map_list.yaml with new map data
branch: sync-map-${{ steps.set_properties.outputs.map_to_sync }}
Expand Down

0 comments on commit d2aa31e

Please sign in to comment.