From 551f8f6023ab3858d82075d0118131de54edda69 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Tue, 19 Mar 2024 19:15:13 +0100 Subject: [PATCH] Update Workflows --- .github/workflows/php-cs-fixer.yml | 26 +++++++------------------ .github/workflows/release-drafter.yml | 6 +----- .github/workflows/update-changelog.yaml | 21 +------------------- 3 files changed, 9 insertions(+), 44 deletions(-) diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml index 5811f0c..a061a6c 100644 --- a/.github/workflows/php-cs-fixer.yml +++ b/.github/workflows/php-cs-fixer.yml @@ -1,23 +1,11 @@ -name: Check & fix styling +name: php-cs-fixer -on: [push] +on: + pull_request: + push: + branches: + - main jobs: php-cs-fixer: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - ref: ${{ github.head_ref }} - - - name: Run PHP CS Fixer - uses: docker://oskarstark/php-cs-fixer-ga - with: - args: --config=.php-cs-fixer.php --allow-risky=yes - - - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Fix styling + uses: stefanzweifel/reusable-workflows/.github/workflows/php-cs-fixer.yml@main diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 896edaf..18dc2db 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -7,8 +7,4 @@ on: jobs: update_release_draft: - runs-on: ubuntu-latest - steps: - - uses: release-drafter/release-drafter@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: stefanzweifel/reusable-workflows/.github/workflows/release-drafter.yml@main diff --git a/.github/workflows/update-changelog.yaml b/.github/workflows/update-changelog.yaml index 375694a..54f78f1 100644 --- a/.github/workflows/update-changelog.yaml +++ b/.github/workflows/update-changelog.yaml @@ -6,23 +6,4 @@ on: jobs: update: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - ref: main - - - name: Update Changelog - uses: stefanzweifel/changelog-updater-action@v1 - with: - release-notes: ${{ github.event.release.body }} - latest-version: ${{ github.event.release.name }} - - - name: Commit updated CHANGELOG - uses: stefanzweifel/git-auto-commit-action@v4 - with: - branch: main - commit_message: Update CHANGELOG - file_pattern: CHANGELOG.md + uses: stefanzweifel/reusable-workflows/.github/workflows/update-changelog.yml@main