Skip to content

[deps] Bump immutable from 5.1.3 to 5.1.5 #420

[deps] Bump immutable from 5.1.3 to 5.1.5

[deps] Bump immutable from 5.1.3 to 5.1.5 #420

Workflow file for this run

---
name: OpenWISP Website CI Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python 3.12
uses: actions/setup-python@v6
with:
python-version: 3.12
cache: "pip"
cache-dependency-path: |
**/requirements*.txt
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "20"
- name: Install test dependencies
run: |
yarn install
pip install -U pip setuptools wheel
pip install -r requirements.txt
- name: QA checks
run: ./run-qa-checks
- name: Build
run: make publish
- name: Setup Google Cloud
if: ${{ github.event_name=='push' }}
uses: "google-github-actions/auth@v3"
with:
credentials_json: ${{ secrets.GCS_DOWNLOADS_SERVICE_ACCOUNT_JSON }}
project_id: ${{ secrets.GCS_PROJECT_ID }}
export_environment_variables: true
- name: Set up Cloud SDK
if: ${{ github.event_name=='push' }}
uses: "google-github-actions/setup-gcloud@v3"
- name: Deploy pages to openwisp.org
if: ${{ github.event_name=='push' }}
run: gsutil -m rsync -r ${{ env.SRC_URL }} ${{ env.DST_URL }}
env:
SRC_URL: /home/runner/work/OpenWISP-Website/OpenWISP-Website/output/
DST_URL: gs://${{ secrets.GCS_WEBSITE_BUCKET_NAME }}/
invalidate-cache:
runs-on: ubuntu-latest
needs: build
if: ${{ needs.build.result == 'success' }} && ${{ github.event_name=='push' }}

Check warning on line 71 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / OpenWISP Website CI Build

Workflow syntax warning

.github/workflows/ci.yml (Line: 71, Col: 9): Conditional expression contains literal text outside replacement tokens. This will cause the expression to always evaluate to truthy. Did you mean to put the entire expression inside ${{ }}?
steps:
- name: Authenticate to Google Cloud
if: ${{ github.event_name=='push' }}
uses: google-github-actions/auth@v3
with:
credentials_json: ${{ secrets.GCS_DOWNLOADS_SERVICE_ACCOUNT_JSON }}
project_id: ${{ secrets.GCS_PROJECT_ID }}
export_environment_variables: true
- name: Invalid CDN cache on GCP
if: ${{ github.event_name=='push' }}
uses: stefanodotit/github-actions-invalidate-gcp-cdn@v1
with:
load_balancer_name: ${{ secrets.GCS_MAIN_LOAD_BALANCER_NAME }}
host: openwisp.org
path: "/*"