bot.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # This is a basic workflow to help you get started with Actions
  2. name: CI
  3. # Controls when the workflow will run
  4. on:
  5. # Triggers the workflow on push or pull request events but only for the main branch
  6. push:
  7. branches: [ main ]
  8. workflow_dispatch:
  9. schedule:
  10. - cron: '0 */6 * * *'
  11. pull_request:
  12. branches: [ main ]
  13. # Allows you to run this workflow manually from the Actions tab
  14. # A workflow run is made up of one or more jobs that can run sequentially or in parallel
  15. jobs:
  16. # This workflow contains a single job called "build"
  17. build:
  18. # The type of runner that the job will run on
  19. runs-on: ubuntu-latest
  20. # Steps represent a sequence of tasks that will be executed as part of the job
  21. steps:
  22. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  23. - uses: actions/checkout@v2
  24. # Runs a single command using the runners shell
  25. - name: first commit
  26. run: date >> dump.md
  27. # Runs a set of commands using the runners shell
  28. - name: second commit
  29. run: |
  30. git add .
  31. git config user.name 'eeznivx'
  32. git config user.email 'vinzeegriffths@gmail.com'
  33. git commit -m "penghijauan"
  34. git push
  35. - name: third commit
  36. run: sed -i '$ d' dump.md
  37. - name: finishing
  38. run: |
  39. git add .
  40. git config user.name 'eeznivx'
  41. git config user.email 'vinzeegriffths@gmail.com'
  42. git commit -m "wow dapat gmail banyak 😂"
  43. git push