diff --git a/.github/workflows/create-digest.yml b/.github/workflows/create-digest.yml new file mode 100644 index 0000000..2409a2f --- /dev/null +++ b/.github/workflows/create-digest.yml @@ -0,0 +1,32 @@ +name: Generate Repository Digest + +on: + workflow_dispatch: + +jobs: + analyze: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install gitingest + run: pip install gitingest + + - name: Generate digest + run: | + gitingest . > repo-digest.txt + + - name: Upload digest artifact + uses: actions/upload-artifact@v3 + with: + name: repository-digest + path: repo-digest.txt + retention-days: 30 \ No newline at end of file