Skip to content

Commit

Permalink
Update update-date.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
robson-cruz authored Feb 7, 2024
1 parent ea83252 commit 4b51916
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/update-date.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Atualizar Data

on:
schedule:
- cron: '0 0 * * *' # Executar diariamente à meia-noite UTC
Expand All @@ -12,26 +13,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set environment
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

- name: Checkout do código
uses: actions/checkout@v2

- name: Pull changes from remote repository
run: |
cd endangeredBrazilianPlantSpecies
git pull https://github.com/rcDeveloping/endangeredBrazilianPlantSpecies.git main
working-directory: ${{ github.workspace }}


- name: Executar script de atualização da data
run: |
chmod +x endangeredBrazilianPlantSpecies/update-date.sh
cd endangeredBrazilianPlantSpecies
chmod +x update-date.sh
git config --global user.email "rcflorestal@yahoo.com.br"
git config --global user.name "rcDeveloping"
./update-date.sh
working-directory: ${{ github.workspace }}

0 comments on commit 4b51916

Please sign in to comment.