Add v2 index standard #1
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
name: Wordlist Index Updater | ||
on: | ||
push: | ||
branches: [ "master" ] | ||
schedule: | ||
- cron: '0 0 * * *' | ||
jobs: | ||
publish: | ||
name: Publish index | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
- name: Setup .NET Core SDK | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: | | ||
6.0.x | ||
8.0.x | ||
- name: Install dependencies | ||
run: | | ||
dotnet restore | ||
- name: Build | ||
run: | | ||
dotnet build cli/Kryptor.Cli/Kryptor.Cli.csproj --configuration Debug --no-restore -o bin | ||
shell: bash | ||
- name: Update Index | ||
run: | | ||
bin/kryptor w c Wordlist-Index.json Wordlist-IndexV2.json | ||
shell: bash | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Update wordlist index | ||