From a4deef2dc8c2192b6b2fbeace78d94d494623b8b Mon Sep 17 00:00:00 2001 From: Parikshit Sharma <196621909+ElonCoding@users.noreply.github.com> Date: Fri, 7 Aug 2026 00:26:26 +0530 Subject: [PATCH] Add GitHub Actions workflow for 3D Skyline generation --- .github/workflows/3d.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/3d.yml diff --git a/.github/workflows/3d.yml b/.github/workflows/3d.yml new file mode 100644 index 0000000..a722cc1 --- /dev/null +++ b/.github/workflows/3d.yml @@ -0,0 +1,34 @@ +name: Generate 3D Contribution Skyline + +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Generate Skyline + uses: Platane/snk@v3 + with: + github_user_name: ElonCoding + outputs: | + output/profile-3d-contrib/profile-night-rainbow.svg + + - name: Commit and Push SVG + env: + TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git config --global user.name 'ElonCoding' + git config --global user.email 'sharmaparikshit405@gmail.com' + git add output || echo "Nothing to add" + git commit -m "🛰️ Update 3D Skyline graph" || echo "Nothing to commit" + git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }}.git + git push origin HEAD:main