ci: Update the completed.md file when finished, if needed.

This commit is contained in:
zontreck 2025-03-26 02:07:49 -07:00
parent b7da40f530
commit fe92b0ec49
5 changed files with 119 additions and 3 deletions

32
Jenkinsfile vendored
View file

@ -56,6 +56,13 @@ pipeline {
dir ("build/windows/x64/runner/release") {
bat 'tar -cvf ../../../../../windows.tgz .'
}
bat 'rmdir /S /Q build'
bat 'flutter build windows -t lib\\updateTool.dart'
bat "build\\windows\\x64\\runner\\release\\pokedex.exe"
stash includes: "COMPLETED.md", name: "md"
}
}
post {
@ -66,5 +73,30 @@ pipeline {
}
}
}
stage ("Update COMPLETED.md") {
agent {
label "linux"
}
steps {
script {
unstash "md"
sh '''
#!/bin/bash
git add COMPLETED.md
git commit -m "[BOT] Update completed.md"
git push
'''
}
}
post {
always {
cleanWs()
}
}
}
}
}