Skip to content

Try to give workflows: write permission #2733

Try to give workflows: write permission

Try to give workflows: write permission #2733

name: Check for new Ruby releases in ruby-build

Check failure on line 1 in .github/workflows/check-new-releases.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check-new-releases.yml

Invalid workflow file

(Line: 8, Col: 3): Unexpected value 'workflows'
on:
schedule:
- cron: '0 7,19 * * *'
workflow_dispatch:
permissions:
contents: write # for pushing to master
workflows: write # for changing .github/workflows/build.yml
jobs:
check_new_releases:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Clone setup-ruby
uses: actions/checkout@v4
with:
repository: ruby/setup-ruby
path: setup-ruby
- name: Clone ruby-build
uses: actions/checkout@v4
with:
repository: rbenv/ruby-build
path: ruby-build
- name: Install ruby-build
run: sudo ./ruby-build/install.sh
- name: List versions
run: ruby-build --definitions
- name: Setup git user
run: |
git config user.name 'ruby-builder-bot'
git config user.email '98265520+ruby-builder-bot@users.noreply.github.com'
- run: ruby check-new-releases.rb