Check for New Erlang Versions #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check for New Erlang Versions | |
on: | |
schedule: | |
- cron: 0 17 * * * | |
workflow_dispatch: | |
env: | |
CI_GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} | |
GIT_AUTHOR_NAME: ${{ secrets.RABBITMQ_CI_USERNAME }} | |
GIT_AUTHOR_EMAIL: ${{ secrets.RABBITMQ_CI_EMAIL }} | |
jobs: | |
check: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run check script | |
run: | | |
python ci/check-new-releases.py erlang erlang/otp | |
- name: Commit changes | |
if: ${{ env.has_changed == 'true' }} | |
run: | | |
git config --global user.name "$GIT_AUTHOR_NAME" | |
git config --global user.email "$GIT_AUTHOR_EMAIL" | |
git commit -a -m "New Erlang version(s) detected" | |
git push origin ${{ github.ref }} |