ci: remove renovate-downstream (#25464)

This commit is contained in:
Robert Lin 2021-09-28 12:28:34 -04:00 committed by GitHub
parent 14b7dd0557
commit d1cc576e6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 61 deletions

View File

@ -1,18 +0,0 @@
{
"$schema": "http://json.schemastore.org/renovate",
"onboarding": false,
"requireConfig": true,
"gitAuthor": "Renovate Bot <bot@renovateapp.com>",
"repositories": [
"sourcegraph/deploy-sourcegraph"
],
"prBodyNotes": [
"{{#if groupName}}Source: {{replace 'Sourcegraph Docker insiders images' 'https://github.com/sourcegraph/sourcegraph/pull/PULL_REQUEST' groupName}}{{/if}}"
],
"prFooter": "This PR was generated by the ['Renovate downstream' workflow](https://github.com/sourcegraph/sourcegraph/actions?query=workflow%3A%22Renovate+downstream%22)",
"force": {
"enabled": true
},
"logLevel": "debug",
"printConfig": true
}

View File

@ -1,43 +0,0 @@
name: Renovate downstream
on:
status:
workflow_dispatch:
jobs:
# This job should trigger rennovate to run on the repositories defined in renovate-downstream.json
renovate:
runs-on: ubuntu-latest
# Run on commit status success on branch main, ignoring bot events
if: ${{ contains(github.event.branches.*.name, 'main') }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Dump event
continue-on-error: true
env:
EVENT_CONTEXT: ${{ toJson(github) }}
run: |
echo "$EVENT_CONTEXT"
# retrieve first pull request attached to this commit
- name: Get pull request
id: pull_request
run: |
NUMBER=$(curl \
-H "Authorization: token ${{ secrets.BUILDKITE_GITHUBDOTCOM_TOKEN }}" \
-H "Accept: application/vnd.github.groot-preview+json" \
https://api.github.com/repos/sourcegraph/sourcegraph/commits/${{ github.sha }}/pulls | jq --raw-output '.[0].number' | cat)
echo "::set-output name=number::$NUMBER"
- name: Update renovate config with PR number
run: |
sed -i -e 's/PULL_REQUEST/${{ steps.pull_request.outputs.number }}/g' .github/workflows/renovate-downstream.json
cat .github/workflows/renovate-downstream.json
- name: Renovate
uses: renovatebot/github-action@v24.16.3
with:
configurationFile: .github/workflows/renovate-downstream.json
# token must be a personal access token for cross-repo access - currently @sourcegraph-bot cross-repo-github-actions in 1password
# configure in https://github.com/sourcegraph/sourcegraph/settings/secrets/RENOVATE_TOKEN
token: ${{ secrets.RENOVATE_TOKEN }}