- name: Mis a jour du resultat du vote Borda
- on:
- - push
- jobs:
- build:
- runs-on: ubuntu-latest
- permissions:
- contents: write
- steps:
- - uses: actions/checkout@v2
- - name: Mis a jour du resultat du vote Borda
- run: python ${{ github.workspace }}/vote_borda.py > ${{ github.workspace }}/resultat_vote.txt
-
- - name: Ajouter le fichier resultat_vote.txt
- run: git add ${{ github.workspace }}/resultat_vote.txt
-
- - name: Commit and Push
- run: |
- git config --local user.email "action@github.com"
- git config --local user.name "GitHub Action"
- git add ${{ github.workspace }}/resultat_vote.txt
- git commit -m "Actualisation du resultat du vote Borda"
- git push origin main
|