Skip to content

Improve documentation #6

Improve documentation

Improve documentation #6

name: Downgraded Release
on:
push:
tags:
- '*'
jobs:
downgrade_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.5
tools: composer:v2
coverage: none
- name: Install dependencies
run: composer install --no-interaction --no-progress --prefer-dist
- run: composer run rector:downgrade
shell: bash
- run: composer require php "^7.4 || ^8.0"
- run: |
git config user.email "aggelosbellos7@gmail.com"
git config user.name "Aggelos Bellos"
- name: "Tag Downgraded Code"
run: |
# separate a "git add" to add untracked (new) files too
git add --all
git commit -m "Release PHP 7.4 downgraded"
# force push tag, so there is only 1 version
git tag "${GITHUB_REF#refs/tags/}" --force
git push origin "${GITHUB_REF#refs/tags/}" --force