Auto update #1020
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: Auto update | |
on: | |
schedule: | |
# * is a special character in YAML, so you have to quote this string | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
auto-update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies | |
run: composer install | |
- name: Update meta data | |
run: composer run update-meta-data | |
- name: Get current date | |
id: date | |
run: | | |
echo "{date}={$(date +'%Y-%m-%d')}" >> $GITHUB_STATE | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
branch: auto-update-${{ env.date }} | |
commit-message: Auto update of meta-data.json | |
title: 'Nightly update of meta-data.json' | |
add-paths: | | |
meta-data.json | |
labels: | | |
automated pr | |
assignees: dannyvdsluijs | |
reviewers: dannyvdsluijs | |
- name: Check outputs | |
run: | | |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | |
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |