Исправлен build.yml: использование vars вместо secrets для подмены OA… #27
This file contains hidden or 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: Build and Publish | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - develop | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| uses: mikopbx/.github-workflows/.github/workflows/extension-publish.yml@master | |
| with: | |
| initial_version: "1.84" | |
| custom_build_steps: | | |
| cd module | |
| sed -i "s|%CLIENT_ID%|${{ vars.AMO_CLIENT_ID }}|g" Lib/AmoCrmMainBase.php | |
| sed -i "s|%CLIENT_SECRET%|${{ vars.AMO_CLIENT_SECRET }}|g" Lib/AmoCrmMainBase.php | |
| sed -i "s|%REDIRECT_URL%|${{ vars.AMO_REDIRECT_URL }}|g" Lib/AmoCrmMainBase.php | |
| echo "AmoCrmMainBase.php placeholders replaced." | |
| secrets: inherit |