diff --git a/.github/workflows/update-packages-list2.yml b/.github/workflows/update-packages-list2.yml index 559ae6a03..2721d478c 100644 --- a/.github/workflows/update-packages-list2.yml +++ b/.github/workflows/update-packages-list2.yml @@ -1,30 +1,31 @@ name: Update packages list on: schedule: - - cron: '0 0 1 1-12/3 *' # Run every three months + - cron: '0 0 1 1-12/1 *' # Run every month push: branches: - - main - paths: - - .github/workflows/license.yml + - update-action + workflow_dispatch: {} jobs: test: - runs-on: elixir + runs-on: ubuntu-latest name: Update packages list in README steps: - uses: actions/checkout@v3 + - uses: erlef/setup-beam@v1 with: - token: ${{ secrets.BOT_TOKEN }} + otp-version: '26.1' + elixir-version: '1.15.6' - name: Update packages list env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.BOT_TOKEN }} run: | elixir update_packages_list.exs git config user.name 'Membrane Bot' git config user.email 'bot@membrane.stream' git checkout -b auto-update-packages-list git add README.md - git commit -m"auto update packages list in readme" + git commit -m"auto update packages list in readme" --allow-empty git push -u origin auto-update-packages-list gh pr create -B master -H auto-update-packages-list --title 'Auto update packages list' \ No newline at end of file