diff options
| author | 2024-05-21 14:49:00 +0800 | |
|---|---|---|
| committer | 2024-05-21 14:49:00 +0800 | |
| commit | e16b7155231be40d202e5213f2bbb1981fd52ac6 (patch) | |
| tree | 00f9871f1bc05efc440e8008404dcb691b8a594a /.github | |
| parent | Fix showing `!source` on tags when tags cog is reloaded (diff) | |
| parent | Add feature to append additional text to nomination reasons (#3000) (diff) | |
Merge branch 'main' into fix/source-command-for-tags
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build-deploy.yml | 3 | ||||
| -rw-r--r-- | .github/workflows/lint-test.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/status_embed.yaml | 30 |
3 files changed, 9 insertions, 26 deletions
diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index a9377728c..07169a6b9 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -77,6 +77,7 @@ jobs: - name: Deploy to Kubernetes uses: azure/k8s-deploy@v5 with: + namespace: bots manifests: | - infra/kubernetes/namespaces/default/bot/deployment.yaml + infra/kubernetes/namespaces/bots/bot/deployment.yaml images: 'ghcr.io/python-discord/bot:${{ inputs.sha-tag }}' diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index 6841d911a..1fac4d862 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -32,7 +32,7 @@ jobs: uses: actions/checkout@v4 - name: Install Python Dependencies - uses: HassanAbouelela/actions/setup-python@setup-python_v1.4.2 + uses: HassanAbouelela/actions/setup-python@setup-python_v1.5.0 with: python_version: '3.12' diff --git a/.github/workflows/status_embed.yaml b/.github/workflows/status_embed.yaml index 8c99bb1b2..f90b211b3 100644 --- a/.github/workflows/status_embed.yaml +++ b/.github/workflows/status_embed.yaml @@ -13,22 +13,6 @@ concurrency: jobs: status_embed: - # We need to send a status embed whenever the workflow - # sequence we're running terminates. There are a number - # of situations in which that happens: - # - # 1. We reach the end of the Deploy workflow, without - # it being skipped. - # - # 2. A `pull_request` triggered a Lint & Test workflow, - # as the sequence always terminates with one run. - # - # 3. If any workflow ends in failure or was cancelled. - if: >- - (github.event.workflow_run.name == 'Deploy' && github.event.workflow_run.conclusion != 'skipped') || - github.event.workflow_run.event == 'pull_request' || - github.event.workflow_run.conclusion == 'failure' || - github.event.workflow_run.conclusion == 'cancelled' name: Send Status Embed to Discord runs-on: ubuntu-latest @@ -46,10 +30,10 @@ jobs: curl -sSL -H "Authorization: token $GITHUB_TOKEN" -o pull_request_payload.zip $DOWNLOAD_URL || exit 2 unzip -p pull_request_payload.zip > pull_request_payload.json [ -s pull_request_payload.json ] || exit 3 - echo "::set-output name=pr_author_login::$(jq -r '.user.login // empty' pull_request_payload.json)" - echo "::set-output name=pr_number::$(jq -r '.number // empty' pull_request_payload.json)" - echo "::set-output name=pr_title::$(jq -r '.title // empty' pull_request_payload.json)" - echo "::set-output name=pr_source::$(jq -r '.head.label // empty' pull_request_payload.json)" + echo "pr_author_login=$(jq -r '.user.login // empty' pull_request_payload.json)" >> $GITHUB_OUTPUT + echo "pr_number=$(jq -r '.number // empty' pull_request_payload.json)" >> $GITHUB_OUTPUT + echo "pr_title=$(jq -r '.title // empty' pull_request_payload.json)" >> $GITHUB_OUTPUT + echo "pr_source=$(jq -r '.head.label // empty' pull_request_payload.json)" >> $GITHUB_OUTPUT env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -64,14 +48,12 @@ jobs: webhook_id: '784184528997842985' webhook_token: ${{ secrets.GHA_WEBHOOK_TOKEN }} - # Workflow information + # We need to provide the information of the workflow that + # triggered this workflow instead of this workflow. workflow_name: ${{ github.event.workflow_run.name }} run_id: ${{ github.event.workflow_run.id }} run_number: ${{ github.event.workflow_run.run_number }} status: ${{ github.event.workflow_run.conclusion }} - actor: ${{ github.actor }} - repository: ${{ github.repository }} - ref: ${{ github.ref }} sha: ${{ github.event.workflow_run.head_sha }} pr_author_login: ${{ steps.pr_info.outputs.pr_author_login }} |