Beach Today #8
This file contains 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: Beach Today | |
on: | |
workflow_dispatch: | |
# schedule: | |
# - cron: '*/5 * * * *' # every 5 minutes | |
jobs: | |
verify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run check | |
env: | |
NOME: ${{ secrets.NOME }} | |
EMAIL: ${{ secrets.EMAIL }} | |
NUMERO_MATRICULA: ${{ secrets.NUMERO_MATRICULA }} | |
CREDENCIAL_ID: ${{ secrets.CREDENCIAL_ID }} | |
run: | | |
echo "Current working directory: $PWD" | |
cd ./project_scripts | |
python3 -m venv venv_praia | |
source venv_praia/bin/activate | |
pip3 install -r requirements.txt | |
python main.py | |
id: vaga_para_compra | |
continue-on-error: true | |
segundo_job: | |
runs-on: ubuntu-latest | |
needs: verify | |
steps: | |
- name: Outra ação | |
run: echo "${{ needs.verify.outputs.resultado_compra }}" |