diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c3ed230..136c986 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,12 +17,12 @@ concurrency: cancel-in-progress: false jobs: - sync-readmes: + build: runs-on: ubuntu-latest - permissions: - contents: write steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + with: + ref: main - name: Fetch READMEs from public repos env: @@ -36,28 +36,6 @@ jobs: bash scripts/fix-readme-links.sh docs/projects - - name: Check for changes - id: changes - run: | - git diff --quiet docs/projects/ && echo "changed=false" >> "$GITHUB_OUTPUT" || echo "changed=true" >> "$GITHUB_OUTPUT" - - - name: Commit updated READMEs - if: steps.changes.outputs.changed == 'true' - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add docs/projects/ - git commit -m "chore: sync READMEs from source repos" - git push - - build: - needs: sync-readmes - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - with: - ref: main - - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7 with: python-version: "3.15.0"