diff --git a/.github/workflows/flow-api-client-tag.yml b/.github/workflows/flow-api-client-tag.yml index a11674096..a0aa4d349 100644 --- a/.github/workflows/flow-api-client-tag.yml +++ b/.github/workflows/flow-api-client-tag.yml @@ -36,6 +36,15 @@ jobs: permissions: contents: write steps: + - name: Test DEVOPS_BOT_GITHUB_TOKEN can post PR comments (temporary) + shell: bash + env: + #GITHUB_TOKEN: ${{ secrets.DEVOPS_BOT_GITHUB_TOKEN }} + GH_TOKEN: ${{ github.token }} + run: | + set -euo pipefail + gh pr comment https://github.com/PeerDB-io/peerdb/pull/4560 --body "test message" + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 - name: Fetch flow-api-client branch and existing tags @@ -75,6 +84,7 @@ jobs: - name: Create and push tag shell: bash env: + GITHUB_TOKEN: ${{ secrets.DEVOPS_BOT_GITHUB_TOKEN }} INPUT_VERSION: ${{ inputs.version }} RESOLVED_VERSION: ${{ steps.resolve.outputs.version }} run: | @@ -94,8 +104,8 @@ jobs: exit 1 fi - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --global user.name "DevOps Bot" + git config --global user.email "peerdb-oss-devops-bot@clickhouse.com" target="$(git rev-parse refs/remotes/origin/flow-api-client)" echo "Tagging flow-api-client tip ${target} as ${tag}"