diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16d9d314..ef4e9e4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: name: Sanity Checks runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: '16.5.0' @@ -35,7 +35,7 @@ jobs: env: DOCKER_REGISTRY_URL: registry.hub.docker.com steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: '16.5.0' diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 9555ac43..a6efde77 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -5,7 +5,7 @@ jobs: commitlint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: sed -i -E "s/(docker:.+)/Dockerfile/" ./action.yml - run: echo -n '' > .dockerignore - uses: actions/setup-node@v3 @@ -30,7 +30,7 @@ jobs: commitlint-pulling-from-docker-hub: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: '16.5.0' diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml new file mode 100644 index 00000000..90b60598 --- /dev/null +++ b/.github/workflows/rebase.yml @@ -0,0 +1,23 @@ +# .github/workflows/sync.yml +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: # all args are optional + # upstream: / + # branch: master diff --git a/Repofile b/Repofile new file mode 100644 index 00000000..89f0b9ee --- /dev/null +++ b/Repofile @@ -0,0 +1,8 @@ +{ + "maintainers": [ + "Developer productivity" + ], + "checks": [ + "commitlint" + ] +} diff --git a/catalog-info.yml b/catalog-info.yml new file mode 100644 index 00000000..07118822 --- /dev/null +++ b/catalog-info.yml @@ -0,0 +1,16 @@ +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: commitlint-github-action + description: | + Lints Pull Request commits with commitlint. + annotations: + github.com/project-slug: Tradeshift/commitlint-github-action + tags: + - github-action + - nodejs + - fork +spec: + type: library + owner: sre + lifecycle: production