diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index e999ab4..c13aa33 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -8,7 +8,6 @@ on: permissions: contents: read pages: write - id-token: write concurrency: group: "pages" @@ -46,7 +45,7 @@ jobs: path: ./_site name: github-pages retention-days: 1 - + deploy: runs-on: ubuntu-latest needs: [build] @@ -60,33 +59,22 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - report-status: + report-build-status: runs-on: ubuntu-latest - needs: [build, deploy] - + needs: [build] + steps: - name: Checkout repository uses: actions/checkout@v4.1.1 - with: - ref: "main" - - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: 3.8 - - - name: Print PWD - run: pwd - - - name: Install requests - run: python -m pip install requests - - - name: Report build status - run: python .github/scripts/report_build_status.py - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Report deployment status - run: python .github/scripts/report_deploy_status.py + + - name: Set up GitHub CLI + uses: actions/setup-gh@v1.1 + + - name: Run GitHub CLI command + run: | + gh api -X POST "repos/$GITHUB_REPOSITORY/pages/telemetry" \ + -F github_run_id="$GITHUB_RUN_ID" \ + -F conclusion="$CONCLUSION" env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CONCLUSION: success