-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
on: | ||
push: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 1 * *' | ||
|
||
name: Update Yosys (and OSS Cad Suite) | ||
|
||
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#workarounds-to-trigger-further-workflow-runs | ||
jobs: | ||
update: | ||
name: Update OSS Cad Suite Version | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# Yesterday, because CAD suite versions are made at the end of the | ||
# night. | ||
- name: Update OSS CAD Suite version file (and save new value) | ||
run: | | ||
date -d today +%Y-%m-%d > ci/oss-cad-suite-version | ||
echo >> $GITHUB_ENV OSS_CAD_SUITE_DATE=$(cat ci/oss-cad-suite-version) | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
commit-message: Update OSS CAD Suite version to ${{ env.OSS_CAD_SUITE_DATE }} | ||
committer: GitHub <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
branch: update-yosys-${{ env.OSS_CAD_SUITE_DATE }} | ||
delete-branch: true | ||
title: Update OSS CAD Suite version to ${{ env.OSS_CAD_SUITE_DATE }} | ||
body: | | ||
Auto-generated by [create-pull-request][1] | ||
[1]: https://github.com/peter-evans/create-pull-request | ||
labels: | | ||
automated pr | ||
assignees: cr1901 | ||
reviewers: cr1901 | ||
draft: false |