Skip to content

fix: use go.mod protobuf version for generation #170

fix: use go.mod protobuf version for generation

fix: use go.mod protobuf version for generation #170

name: "label-elastic-pull-requests"
on:
pull_request_target:
types: [opened]
permissions:
contents: read
jobs:
safe-to-test:
runs-on: ubuntu-latest
steps:
- name: Get token
id: get_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
permissions: >-
{
"members": "read",
"pull_requests": "write"
}
- name: Check team membership for user
uses: elastic/[email protected]
id: checkUserMember
with:
username: ${{ github.actor }}
team: 'apm'
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
- name: Add safe-to-test label
uses: actions/github-script@v7
if: steps.checkUserMember.outputs.isTeamMember == 'true'
with:
github-token: ${{ steps.get_token.outputs.token }}
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["safe-to-test"]
})