presubmits:
  kubernetes/publishing-bot:
  - name: pull-publishing-bot-build
    always_run: true
    decorate: true
    path_alias: k8s.io/publishing-bot
    spec:
      containers:
      - image: golang:1.13
        command:
        - make
    annotations:
      testgrid-dashboards: sig-release-publishing-bot
      testgrid-tab-name: build
  kubernetes/kubernetes:
  - name: pull-publishing-bot-validate
    always_run: false
    decorate: true
    path_alias: k8s.io/kubernetes
    skip_report: false
    optional: true
    run_if_changed: '^staging/publishing.*$'
    extra_refs:
    - org: kubernetes
      repo: publishing-bot
      base_ref: master
      path_alias: k8s.io/publishing-bot
    spec:
      containers:
      - image: gcr.io/k8s-testimages/kubekins-e2e:v20200623-2424179-master
        command:
        - go
        args:
        - run
        - k8s.io/publishing-bot/cmd/validate-rules
        - /home/prow/go/src/k8s.io/kubernetes/staging/publishing/rules.yaml
    annotations:
      testgrid-dashboards: sig-release-publishing-bot
      testgrid-tab-name: validate

presubmits:
  kubernetes/publishing-bot:
  - name: pull-publishing-bot-build
    always_run: true
    decorate: true
    path_alias: k8s.io/publishing-bot
    spec:
      containers:
      - image: golang:1.13
        command:
        - make
    annotations:
      testgrid-dashboards: sig-release-publishing-bot
      testgrid-tab-name: build
  kubernetes/kubernetes:
  - name: pull-publishing-bot-validate
    always_run: false
    decorate: true
    path_alias: k8s.io/kubernetes
    skip_report: false
    optional: true
    run_if_changed: '^staging/publishing.*$'
    extra_refs:
    - org: kubernetes
      repo: publishing-bot
      base_ref: master
      path_alias: k8s.io/publishing-bot
    spec:
      containers:
      - image: golang:1.13
        command:
        - go
        args:
        - run
        - k8s.io/publishing-bot/cmd/validate-rules
        - /home/prow/go/src/k8s.io/kubernetes/staging/publishing/rules.yaml
    annotations:
      testgrid-dashboards: sig-release-publishing-bot
      testgrid-tab-name: validate

Use go 1.13 for pull-publishing-bot-validate
Use go 1.13 for pull-publishing-bot-validate

With go 1.14:

```
$ go run k8s.io/publishing-bot/cmd/validate-rules ./staging/publishing/rules.yaml
package k8s.io/publishing-bot/cmd/validate-rules: cannot find package "." in:
	/home/nikhita/go/src/k8s.io/kubernetes/vendor/k8s.io/publishing-bot/cmd/validate-rules
```

With go 1.13:

```
go: finding k8s.io/publishing-bot latest
I0708 03:03:16.384590   14888 rules.go:89] loading rules file : ./staging/publishing/rules.yaml
I0708 03:03:16.395696   14888 rules.go:125] validating repository order
I0708 03:03:16.395848   14888 main.go:37] validation successful
```
