Skip to content

run bot script without docker #8

run bot script without docker

run bot script without docker #8

name: run bot script without docker
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
environment: myenvironment
steps:
- name: Checkout do Código
uses: actions/checkout@v2
- name: Configurar PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_API_KEY: ${{secrets.API_KEY}}
envkey_API_SECRET_KEY: ${{secrets.API_SECRET_KEY}}
envkey_ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}}
envkey_ACCESS_TOKEN_SECRET: ${{secrets.ACCESS_TOKEN_SECRET}}
file_name: .env
- name: Clear Composer Cache
run: composer clear-cache
- name: Update Composer
run: composer self-update
- name: Remove Composer Files
run: |
rm -rf vendor
rm -f composer.lock
- name: Install Composer Dependencies
run: composer install --ignore-platform-reqs
- name: Run php script
run: php main.php