mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
ci: remove renovate-downstream (#25464)
This commit is contained in:
parent
14b7dd0557
commit
d1cc576e6f
18
.github/workflows/renovate-downstream.json
vendored
18
.github/workflows/renovate-downstream.json
vendored
@ -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
|
||||
}
|
||||
43
.github/workflows/renovate-downstream.yml
vendored
43
.github/workflows/renovate-downstream.yml
vendored
@ -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 }}
|
||||
Loading…
Reference in New Issue
Block a user