Skip to content

ukatech/ukagaka-mirror-md5-CI-build

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Attention!

disable autocrlf when you use it


ukagaka-mirror-md5-CI-build

How bad would it be if the md5 didn't match

about github action: https://docs.github.com/actions

useage: https://github.com/Taromati2/stable-mirror/blob/master/.github/workflows/md5-CI-build.yml

#after the recent github update, you need to additionally specify the workflow permissions to allow reading and writing
#like
permissions:
  contents: write #see https://docs.github.com/actions/using-jobs/assigning-permissions-to-jobs
#//...
runs-on: windows-latest
steps:
- name: disable auto crlf
  uses: steve02081504/disable-autocrlf@v1
  #//...
  #//checkout your ghost file: actions/checkout
  #//...
  #//dosome check like shiori-check or do nothing: Taromati2/yaya-CI-check
  #//...
- name: md5file-CI-build
  uses: Taromati2/ukagaka-mirror-md5-CI-build@v1
  with:
    # where is your update file?
    dir-path: .\Taromati2 # default is .
    # ghost_dir(for ghost & each shell) or other(only for a dir)
    build-mode: ghost_dir # default is ghost_dir
    # no push will be performed if this value is true
    # no-push: # optional, default is flase
    # 
    # commit-message: # optional, default is 'md5 fix~'
    # 
    # committer-email: # optional, default is taromati2@outlook.com
    # 
    # committer-name: # optional, default is Taromati2

rules for ignore

md5buildignore.txt for type other & ghost_dir's ghost part
md5buildignoreforeach.txt for ghost_dir's shell part


ignores *.inf under /ghost/data/*

/ghost/data/*/*.inf

unignore love.inf under /ghost/data/*

!/ghost/data/*/love.inf

ignore some.log1, some.log2, some.logA...(and others) under ANY Folder

some.log?

or

*/some.log?

useage:
https://github.com/Taromati2/stable-mirror/blob/master/Taromati2/md5buildignore.txt
https://github.com/Taromati2/stable-mirror/blob/master/Taromati2/shell/md5buildignoreforeach.txt