Skip to content

github action to perform a submodule check and alert to slack if there is a mismatch

Notifications You must be signed in to change notification settings

rive-app/github-actions-submodule-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Description

A simple submodule version checker github action.

When used, this will check a submodule dependency against

Parameters

Just look at the action.yml itself, it's <30 lines of code, and will stay up to date.

How to (by example)

name: Check rive-ios sub modules

on:
  # lets check it when we push to master (we've just done something in android, its a good time to see about this)
  push:
    branches:
      - master
  
  schedule:
    # 8am UTC every day
    - cron:  '0 8 * * *'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Code
        uses: actions/checkout@v2

      - name: Run cpp version check
        uses: rive-app/github-actions-submodule-check@v6
        with:
          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
          SUBMODULE_GIT_URL: https://github.com/rive-app/rive-cpp.git

Gotchas

This does magic to figure out the submodule repository name, its probably fragile and will need tweaking when using with repositories with the same name from different organizations.

About

github action to perform a submodule check and alert to slack if there is a mismatch

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages