Skip to content

Commit

Permalink
Use nginx-bot in NFR PR (#1728)
Browse files Browse the repository at this point in the history
Problem: GitHub won't run Actions for commits created by a bot using the
default token

Solution: Use nginx-bot (that is not actually a bot) with a PAT.
  • Loading branch information
lucacome authored Mar 19, 2024
1 parent bb70021 commit 5b9f37c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/nfr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
token: ${{ secrets.NGINX_PAT }}

- name: Setup Golang Environment
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
Expand Down Expand Up @@ -160,8 +162,9 @@ jobs:
- name: Open a PR with the results
uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e # v6.0.2
with:
token: ${{ secrets.NGINX_PAT }}
commit-message: NFR Test Results for NGF version ${{ inputs.version }} ${{ inputs.nginx_plus == true && '(Plus)' || ''}}
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
author: nginx-bot <integrations@nginx.com>
branch: tests/nfr-tests-${{ inputs.version }}${{ inputs.nginx_plus == true && '-plus' || ''}}
delete-branch: true
title: NFR Test Results for NGF version ${{ inputs.version }} ${{ inputs.nginx_plus == true && '(Plus)' || ''}}
Expand Down

0 comments on commit 5b9f37c

Please sign in to comment.