From 5ac4b3bd79c741871373d7cc6018702ff985dd2a Mon Sep 17 00:00:00 2001
From: Jesper Terkelsen <jnt@tradeshift.com>
Date: Mon, 19 Jun 2023 12:33:30 +0200
Subject: [PATCH] chore: setup ownership in backstage

Motivation: All repos needs to have a clear owner
---
 .github/workflows/rebase.yml | 21 +++++++++++++++++++++
 catalog-info.yml             | 16 ++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100644 .github/workflows/rebase.yml
 create mode 100644 catalog-info.yml

diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml
new file mode 100644
index 0000000..6f69bec
--- /dev/null
+++ b/.github/workflows/rebase.yml
@@ -0,0 +1,21 @@
+name: Rebase Upstream
+on:
+  schedule:
+  - cron: "0 0 * * 0"  # run once a week
+  workflow_dispatch:   # run manually
+
+jobs:
+  sync:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@master
+      with:
+        fetch-depth: 0 # fetching all history so i can rebase
+        token: ${{ secrets.GH_TOKEN }}
+    - name: Configure git for tradeshiftci
+      uses: tradeshift/actions-git/configure-from-gpg-key@v1
+      with:
+        gpg-key: ${{ secrets.TRADESHIFTCI_GPG_KEY }}  
+    - uses: tradeshift/rebase-upstream-action@master
+      with:
+        branch: master
diff --git a/catalog-info.yml b/catalog-info.yml
new file mode 100644
index 0000000..1407cbb
--- /dev/null
+++ b/catalog-info.yml
@@ -0,0 +1,16 @@
+apiVersion: backstage.io/v1alpha1
+kind: Component
+metadata:
+  name: setup-buildx-action
+  description: |
+    GitHub Action to set up Docker Buildx
+  annotations:
+    github.com/project-slug: Tradeshift/setup-buildx-action
+  tags:
+    - github-action
+    - nodejs
+    - fork
+spec:
+  type: library
+  owner: sre
+  lifecycle: production