From 6ed01db0f02569fbb6a7b3ba1038ce0d3198365f Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Sun, 24 Mar 2024 15:50:22 +0300 Subject: [PATCH] Delete .github/workflows/update.yml --- .github/workflows/update.yml | 98 ------------------------------------ 1 file changed, 98 deletions(-) delete mode 100644 .github/workflows/update.yml diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml deleted file mode 100644 index 9579fd8fa2a..00000000000 --- a/.github/workflows/update.yml +++ /dev/null @@ -1,98 +0,0 @@ -name: update - -on: - push: - branches: - - main - release: - types: - - released - -permissions: write-all - -jobs: - update: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json - coverage: none - - - name: Git setup - if: success() - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - - - name: Install dependencies - run: composer update --prefer-stable --prefer-dist --no-progress --no-interaction - - - name: Adding missing locales - id: locales - if: success() - run: | - IS_DIRTY=1 - - vendor/bin/lang create - - { git add . && git commit -a -m "✏️ Adding missing locales"; } || IS_DIRTY=0 - - echo "is_dirty=${IS_DIRTY}" >> "$GITHUB_OUTPUT" - - - name: Keys actualization - id: keys - if: success() - run: | - IS_DIRTY=1 - - vendor/bin/lang sync - - { git add . && git commit -a -m "🔑 Synchronization of translation keys"; } || IS_DIRTY=0 - - echo "is_dirty=${IS_DIRTY}" >> "$GITHUB_OUTPUT" - - - name: Update status - id: status - if: success() - run: | - IS_DIRTY=1 - - vendor/bin/lang status - - { git add . && git commit -a -m "📃 Translation statuses have been updated"; } || IS_DIRTY=0 - - echo "is_dirty=${IS_DIRTY}" >> "$GITHUB_OUTPUT" - - - name: Fix the code style - uses: TheDragonCode/codestyler@v4 - with: - github_token: ${{ secrets.COMPOSER_TOKEN }} - fix: true - - - name: Push changes - uses: ad-m/github-push-action@master - if: success() && - steps.locales.outputs.is_dirty == 1 || - steps.keys.outputs.is_dirty == 1 || - steps.status.outputs.is_dirty == 1 - with: - github_token: ${{ secrets.COMPOSER_TOKEN }} - - - name: Generate docs trigger - uses: myrotvorets/trigger-repository-dispatch-action@v2.0.0 - if: | - success() && ( - steps.locales.outputs.is_dirty == 1 || - steps.keys.outputs.is_dirty == 1 || - steps.status.outputs.is_dirty == 1 - ) - with: - token: ${{ secrets.COMPOSER_TOKEN }} - repo: Laravel-Lang/docs - type: docs