Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub action to regularly update MondayFights tournaments #11

Open
Bebul opened this issue Mar 5, 2021 · 1 comment
Open

GitHub action to regularly update MondayFights tournaments #11

Bebul opened this issue Mar 5, 2021 · 1 comment
Assignees

Comments

@Bebul
Copy link
Owner

Bebul commented Mar 5, 2021

Tady tohle https://docs.github.com/en/actions

Cíle:

  • mít akci, kterou lze spustit ručně, aby aktualizovala zdrojáky s json daty turnaje
  • tutéž akci naplánovat, aby se spustila vždy v pondělí ve 21:45
@Bebul Bebul self-assigned this Mar 6, 2021
@Bebul
Copy link
Owner Author

Bebul commented Mar 6, 2021

viz https://github.com/marketplace/actions/github-commit-push

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
      with:
        persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
        fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
    - name: Create local changes
      run: |
        ...
    - name: Commit & Push changes
      uses: actions-js/push@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}

takže udělat checkout --> run něco, co udělá změny --> push je běžné.
Půjde jen o to, jak udělat ty změny. Umím to v tom javascript, ale ten běží na browseru a těžko udělá save. Nejspíš tedy přes node.js, snad půjde použít stejný kód.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant