Skip to content

Extract PrestaShop releases and sync backlog of images to generate #397

Extract PrestaShop releases and sync backlog of images to generate

Extract PrestaShop releases and sync backlog of images to generate #397

Workflow file for this run

name: Extract PrestaShop releases and sync backlog of images to generate
on:
workflow_dispatch:
schedule:
- cron: "0 2 * * *"
jobs:
sync-releases:
runs-on: ubuntu-latest
steps:
- name: Check team membership
if: github.event_name == 'workflow_dispatch'
uses: PrestaShop/.github/.github/actions/team-guard@master
with:
team_slug: prestashop-sa
token: ${{ secrets.JARVIS_TOKEN }}
- name: Checkout the repo
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Update backlog
run: python prestashop_docker.py backlog
- uses: dorny/paths-filter@v3
id: filter
with:
base: HEAD
filters: |
versions:
- 'versions.py'
- name: Generate Dockerfiles
if: steps.filter.outputs.versions == 'true'
run: python prestashop_docker.py generate
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
if: steps.filter.outputs.versions == 'true'
with:
commit-message: Update versions.py with new images to generate
title: Sync backlog of Docker images
body: Update of the versions.py contents based on releases published on Distribution API.
base: master
branch: docker-images-backlog-update
delete-branch: true
token: ${{ secrets.JARVIS_TOKEN }}