Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

check upstream

check upstream #1251

name: check upstream
on:
schedule:
- cron: '0 10 * * *'
jobs:
get-version:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fetch release version
run: |
curl -sL https://api.github.com/repos/structurizr/cli/releases/latest | \
jq -e -r ".tag_name" > structurizr-cli-latest.txt
- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
- name: Create Pull Request
if: steps.git-check.outputs.modified == 'true'
uses: peter-evans/create-pull-request@v4.2.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "feat(structurizr-cli): bump version"
title: Update upstream version
body: |
- Dependency updates
branch-suffix: random
base: main
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
assignees: ${{ github.repository_owner }}
reviewers: ${{ github.repository_owner }}
labels: |
bump_upstream_version
automated_pr