Skip to content

Automatically Triage New Metadata #9672

Automatically Triage New Metadata

Automatically Triage New Metadata #9672

Workflow file for this run

on:
push:
branches:
- master
pull_request:
name: test
jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.20.x
- uses: actions/checkout@v2
- run: go get -v -t ./...
- run: go test ./...
upload:
if: ${{ github.event_name == 'pull_request' }}
needs: [test]
runs-on: ubuntu-latest
# The PR number is uploaded instead of triggering another workflow directly
# because this workflow has no permissions and runs with the least
# privileges (This pipeline can be ran by PRs made from forks).
name: "Save PR number for Auto Approve workflow_run"
steps:
- name: Save PR number
env:
PR_NUMBER: ${{ github.event.number }}
run: |
mkdir -p ./pr
echo $PR_NUMBER > ./pr/pr_number.txt
- uses: actions/upload-artifact@v4
with:
name: pr_number
path: pr/