-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.04 KB
/
run-bot-script.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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