chore: chore

This commit is contained in:
2025-10-11 13:29:51 +02:00
parent 86835df816
commit 1c92dcb61a
2 changed files with 10 additions and 13 deletions

View File

@@ -8,21 +8,18 @@ on:
paths: paths:
- 'Projects/kompose/**' - 'Projects/kompose/**'
env: env:
BOT_MESSAGE: true BOT_MESSAGE: "true"
jobs: jobs:
check: check:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
pull-requests: read
steps: steps:
- name: Get commits steps:
env: - uses: actions/checkout@v4
COMMIT_MESSAGE: ${{ github.event.head_commit.message }} - name: Get head commit
run: | run: |
export COMMIT_MESSAGE=$(git log --format=%B -n 1 HEAD | head -n 1)
echo "CHECK: '${{ COMMIT_MESSAGE }}'" echo "CHECK: '${{ COMMIT_MESSAGE }}'"
if [[ "${{ env.COMMIT_MESSAGE }}" == "#bot-message: *" ]]; then if [[ "${{ COMMIT_MESSAGE }}" == "#bot-message: *" ]]; then
echo "FOUND: '#bot-message: '" echo "FOUND: '#bot-message: '"
echo "BOT_MESSAGE=${BOT_MESSAGE}" >> "${GITHUB_ENV}" echo "BOT_MESSAGE=${BOT_MESSAGE}" >> "${GITHUB_ENV}"
else else
@@ -49,9 +46,9 @@ jobs:
CI_COMMIT_EMAIL: admin@pivoine.art CI_COMMIT_EMAIL: admin@pivoine.art
run: | run: |
cd kompose cd kompose
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" git config --global user.name "${{ vars.CI_COMMIT_AUTHOR }}"
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}" git config --global user.email "${{ vars.CI_COMMIT_EMAIL }}"
export CI_COMMIT_MESSAGE="${{ env.CI_COMMIT_MESSAGE }}" export CI_COMMIT_MESSAGE="${{ vars.CI_COMMIT_MESSAGE }}"
${{ github.workspace }}/home/.init/bin/mirror_project.sh "${CI_COMMIT_MESSAGE/#bot-message: /""}" ../home ${{ github.workspace }}/home/.init/bin/mirror_project.sh "${CI_COMMIT_MESSAGE/#bot-message: /""}" ../home

View File

@@ -23,7 +23,7 @@
"editor.defaultFormatter": "vscode.typescript-language-features" "editor.defaultFormatter": "vscode.typescript-language-features"
}, },
"[yaml]": { "[yaml]": {
"editor.defaultFormatter": "trunk.io" "editor.defaultFormatter": "kennylong.kubernetes-yaml-formatter"
}, },
"[dockercompose]": { "[dockercompose]": {
"editor.defaultFormatter": "ms-azuretools.vscode-containers" "editor.defaultFormatter": "ms-azuretools.vscode-containers"