Skip to content

Release 5.8.0 🎉 #242

Release 5.8.0 🎉

Release 5.8.0 🎉 #242

name: Check ORM changes
on:
push:
branches:
- main
jobs:
check_orm_changes_and_notify:
name: Notify ORM extensions about required code updates
runs-on: ubuntu-latest
if: |
!contains(github.event.head_commit.message, 'ga skip') &&
!contains(github.event.head_commit.message, 'skip ga')
env:
ISSUE_TITLE: "ORM requires update due to latest Doorkeeper changes"
ISSUE_BODY: |
Doorkeeper has ORM changes merged to `main` branch.
See https://github.com/doorkeeper-gem/doorkeeper/commit/${{ github.sha }} for the details.
ISSUE_LABELS: ORM
steps:
- name: List & cache git modified files
id: changed_files
uses: lots0logs/gh-action-get-changed-files@2.2.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check if ORM files were changed
id: check_orm_files
run: |
changed_files=$(cat ${HOME}/files.json)
if [[ $changed_files == *"lib/doorkeeper/orm/active_record"* ]] || \
[[ $changed_files == *"lib/doorkeeper/models/"* ]];
then
echo "ORM files changes detected!"
echo "ORM_CHANGES=yes" >> $GITHUB_ENV
else
echo "No changes in ORM files, exiting"
fi
- name: Create an issue for Mongo extension
id: create_mongodb_issue
if: env.ORM_CHANGES == 'yes'
uses: dacbd/create-issue-action@main
with:
token: ${{ github.token }}
title: ${{ env.ISSUE_TITLE }}
body: ${{ env.ISSUE_BODY }}
org: doorkeeper
repo: doorkeeper-mongodb
labels: ${{ env.ISSUE_LABELS}}
- name: Create an issue for Sequel extension
id: create_sequel_issue
if: env.ORM_CHANGES == 'yes'
uses: dacbd/create-issue-action@main
with:
token: ${{ github.token }}
title: ${{ env.ISSUE_TITLE }}
body: ${{ env.ISSUE_BODY }}
repo: doorkeeper-sequel
labels: ${{ env.ISSUE_LABELS}}