Update index #1282
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: Update index | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
update-index: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: coursier/[email protected] | |
- uses: coursier/[email protected] | |
with: | |
jvm: 11 | |
- run: ./scala-cli.sh . | |
env: | |
GH_TOKEN: ${{ secrets.INDEX_GITHUB_TOKEN }} | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/[email protected] | |
with: | |
commit-message: Update index | |
author: GitHub <[email protected]> | |
delete-branch: true | |
title: Update index | |
- name: Check Pull Request | |
run: | | |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | |
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |