From fcb9d339c5fa0cb667aa2245e32a2d53cc40cc26 Mon Sep 17 00:00:00 2001 From: Doc Date: Wed, 8 Oct 2025 21:16:06 -0400 Subject: [PATCH] Added todo test --- .gitea/workflows/test-todo-issue.yaml | 14 ++++++++--- gather-info.sh | 35 +++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 gather-info.sh diff --git a/.gitea/workflows/test-todo-issue.yaml b/.gitea/workflows/test-todo-issue.yaml index 2555406..6fa4322 100644 --- a/.gitea/workflows/test-todo-issue.yaml +++ b/.gitea/workflows/test-todo-issue.yaml @@ -8,10 +8,10 @@ on: required: false type: boolean description: Enable, if you want to import all TODOs. Runs on checked out branch! Only use if you're sure what you are doing. - # push: - # branches: # do not set multiple branches, todos might be added and then get referenced by themselves in case of a merge - # - main - # - master + push: + branches: # do not set multiple branches, todos might be added and then get referenced by themselves in case of a merge + - main + - master permissions: issues: write @@ -25,9 +25,15 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Print environment + run: | + echo "=== ENVIRONMENT ===" + printenv + - name: Run Issue Bot uses: juulsn/todo-issue@main with: excludePattern: '^(node_modules/)' env: + ACTIONS_STEP_DEBUG: true GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/gather-info.sh b/gather-info.sh new file mode 100644 index 0000000..9fdd357 --- /dev/null +++ b/gather-info.sh @@ -0,0 +1,35 @@ +#!/bin/env bash + + +INFOFILE=info-gather-OCT8-1.txt + +OUTFILE=~/${INFOFILE} +touch $OUTFILE + +if [ ! -w ${OUTFILE} ]; then + echo -e "\n\nERROR: Unable to open output file for writing. Exiting\n" + exit 1 +fi + +getinfo() { + echo "Datetime: $(date)" + echo "User: $(id -un) ($(id -u))" + echo "" + + echo "=== DKMS status ===" + dkms status + + echo "" + echo "=== Listings ===" + + for thepath in /var/lib/dkms /var/lib/dkms/nvidia /var/lib/dkms/akvcam/* ; do + echo "" + echo "--- $thepath ---" + ls -lAh $thepath + done +} + +echo "" > $OUTFILE +getinfo | tee $OUTFILE + +echo -e "\n\nPlease share the file ${OUTFILE} with me." \ No newline at end of file