From cf592da5e9761c887f3310245943db8d6bb2e459 Mon Sep 17 00:00:00 2001 From: Ivan Carlos Date: Tue, 9 Dec 2025 20:07:49 +0000 Subject: [PATCH 1/2] Delete .gitea/workflows/update_readme.yml --- .gitea/workflows/update_readme.yml | 96 ------------------------------ 1 file changed, 96 deletions(-) delete mode 100644 .gitea/workflows/update_readme.yml diff --git a/.gitea/workflows/update_readme.yml b/.gitea/workflows/update_readme.yml deleted file mode 100644 index 5e562d0..0000000 --- a/.gitea/workflows/update_readme.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: Update README - -# Allow Gitea Actions to commit and push changes -permissions: - contents: write - -on: - workflow_dispatch: - schedule: - - cron: '0 4 * * *' # Every day at 4 AM UTC - -jobs: - update-readme: - runs-on: ubuntu-latest - container: - image: catthehacker/ubuntu:act-latest - - env: - # Adjusted for Gitea profile convention (usually owner/.profile or owner/.gitea) - # Please verify if 'ivancarlos/.profile' exists or adjust to your profile repository. - SOURCE_REPO: ivancarlos/.profile - SOURCE_BRANCH: main - - steps: - - name: Checkout current repository - uses: actions/checkout@v4 - - - name: Checkout source README template - uses: actions/checkout@v4 - with: - repository: ${{ env.SOURCE_REPO }} - ref: ${{ env.SOURCE_BRANCH }} - path: source_readme - - - name: Update README.md (buttons and footer) - run: | - set -e - REPO_NAME="${GITHUB_REPOSITORY##*/}" - - # --- Extract buttons block from source --- - # Checking if source file exists, if not, skip or fail. - if [ ! -f source_readme/README.md ]; then - echo "Source README not found in ${SOURCE_REPO}" - exit 1 - fi - - BUTTONS=$(awk '//{flag=1;next}//{flag=0}flag' source_readme/README.md) - BUTTONS_UPDATED=$(echo "$BUTTONS" | sed "s/\.github/${REPO_NAME}/g") - - # --- Extract footer block from source (everything from onward) --- - FOOTER=$(awk '//{flag=1}flag' source_readme/README.md) - - # --- Replace buttons section in README.md --- - UPDATED=$(awk -v buttons="$BUTTONS_UPDATED" ' - BEGIN { skip=0 } - // { - print - print buttons - skip=1 - next - } - // && skip { - print - print buttons - skip=0 - next - } - !skip { print } - ' README.md) - - # --- Replace everything after with FOOTER --- - echo "$UPDATED" | awk -v footer="$FOOTER" ' - // { - print footer - found=1 - exit - } - { print } - ' > README.tmp && mv README.tmp README.md - - - name: Remove source_readme from git index - run: rm -rf source_readme || true - - - name: Commit and push changes - run: | - git config --global --add safe.directory '*' - git config user.name "Gitea Actions" - git config user.email "actions@git.icc.gg" - - if [ -n "$(git status --porcelain README.md)" ]; then - git add README.md - git commit -m "Sync README from template [▶️]" - git push origin HEAD:${{ github.ref_name }} - else - echo "No changes to README.md" - fi From 98e50145cad66d124f36a845bebc1f7d119bb429 Mon Sep 17 00:00:00 2001 From: Gitea Actions Date: Tue, 9 Dec 2025 20:29:24 +0000 Subject: [PATCH 2/2] chore: update manifest to upstream commit f2e7a1a --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 19260d7..6d79707 100644 --- a/manifest.json +++ b/manifest.json @@ -1 +1 @@ -{"upstream_sha": "ce4c464", "updated_at": "Tue Dec 9 05:24:18 UTC 2025"} +{"upstream_sha": "f2e7a1a", "updated_at": "Tue Dec 9 20:29:24 UTC 2025"}