Self Update #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Self Update" | |
on: | |
workflow_dispatch: | |
inputs: | |
target: | |
description: 'Target Version' | |
required: true | |
default: '19.*' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Composer Install | |
uses: php-actions/composer@v6 | |
with: | |
command: install | |
args: --working-dir=./src/ --ignore-platform-reqs | |
- name: Composer update | |
uses: php-actions/composer@v6 | |
with: | |
command: update | |
args: --working-dir=./src/ --with openmage/magento-lts:${{ github.event.inputs.target }} --ignore-platform-reqs | |
- run: git add src/composer.json src/composer.lock | |
- name: "git Push" | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git commit -m "workflow selfupdate with target ${{ github.event.inputs.target }}" | |
git push origin HEAD:${GITHUB_REF#refs/heads/} | |