From 8059b68a70c1f45de882b07c465e209658d0707c Mon Sep 17 00:00:00 2001 From: Arlind Date: Fri, 20 Jun 2025 16:15:10 +0200 Subject: [PATCH] Update .gitea/workflows/ci.yml --- .gitea/workflows/ci.yml | 49 +++++------------------------------------ 1 file changed, 6 insertions(+), 43 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 0809aeb..76a6469 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -11,13 +11,11 @@ env: README_PATH: "README.md" jobs: - fetch_and_process_data: - name: Fetch and Process Skin Data + update_readme: + name: Fetch Skin Data and Update README runs-on: ubuntu-latest container: image: ${{ vars.CONTAINER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest - outputs: - total_valid_entries: ${{ steps.generate_data.outputs.total_valid_entries }} steps: - name: Checkout Repository uses: actions/checkout@v4 @@ -27,9 +25,7 @@ jobs: - name: Pull latest changes run: git pull --rebase origin main || echo "Nothing to rebase" - - name: Generate Skin Data Files - id: generate_data - shell: bash + - name: Generate and Update README run: | set -euo pipefail @@ -131,39 +127,7 @@ jobs: page=$((page + 1)) done - echo "total_valid_entries=$total_valid_entries" >> "$GITHUB_OUTPUT" - - - name: Upload data files as artifacts - uses: actions/upload-artifact@v4 - with: - name: skin-data - path: | - /tmp/user_rows.txt - /tmp/avatar_rows.txt - - update_and_push_readme: - name: Update README and Push Changes - runs-on: ubuntu-latest - needs: fetch_and_process_data - container: - image: ${{ vars.CONTAINER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - with: - token: ${{ secrets.TOKEN }} - - - name: Download skin data artifacts - uses: actions/download-artifact@v4 - with: - name: skin-data - path: /tmp - - - name: Update README with user skins - run: | - user_rows_file="/tmp/user_rows.txt" - avatar_rows_file="/tmp/avatar_rows.txt" - + # Create README cat > "$README_PATH" <<-EOF # osu! Swiss Community Skin collection @@ -215,15 +179,14 @@ jobs: git config user.name "ci-bot" git config lfs.https://${{ vars.CONTAINER_REGISTRY }}/arlind/skins.git/info/lfs.locksverify true - - name: Add and Commit changes + - name: Commit and Push run: | git config advice.addIgnoredFile false git add "$README_PATH" git commit -m "[ci skip] push back from pipeline" -q || echo "No changes to commit" - - name: Push changes and create tag - run: | if [ "${GITHUB_REF}" = "refs/heads/main" ]; then git push origin HEAD:main || echo "No changes to push" else git push origin HEAD:"${GITHUB_REF_NAME}" || echo "No changes to push" +