mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 21:20:31 +00:00
发布流程简化
This commit is contained in:
16
.github/release.js
vendored
Normal file
16
.github/release.js
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
const fs = require('fs').promises;
|
||||
const yaml = require('js-yaml');
|
||||
|
||||
async function parseYaml() {
|
||||
try {
|
||||
const fileContents = await fs.readFile('./theme.yml', 'utf8');
|
||||
const data = yaml.load(fileContents);
|
||||
|
||||
console.log(data.gitea.version);
|
||||
} catch (e) {
|
||||
console.error('Error parsing YAML:', e.message);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
parseYaml();
|
||||
Reference in New Issue
Block a user