From 3eef30710ac8e11dddcccded9bbc870442824d46 Mon Sep 17 00:00:00 2001 From: "Daniel W. Anner" Date: Fri, 3 Mar 2023 15:25:57 +0000 Subject: [PATCH 1/3] Added monthly dependabot definition --- .github/dependabot.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..f422d7cc --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +--- +version: 2 +updates: + - package-ecosystem: pip + directory: / + schedule: + interval: monthly + time: '02:00' + timezone: America/New_York + labels: + - dependencies + target-branch: master + assignees: + - "danner26" \ No newline at end of file From a0aced0c4aa4e73bb8a75523a40e2045ffb975be Mon Sep 17 00:00:00 2001 From: "Daniel W. Anner" Date: Fri, 3 Mar 2023 15:27:19 +0000 Subject: [PATCH 2/3] Adding stale PR workflow, but commented out until we get this repo up to date --- .github/workflows/stale.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..f937c075 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,24 @@ +--- +# close-stale-issues (https://github.com/marketplace/actions/close-stale-issues) +# name: Close stale PRs +# on: # yamllint disable-line rule:truthy +# schedule: +# - cron: 0 4 * * * + +# jobs: +# stale: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/stale@v5 +# with: +# close-pr-message: > +# This PR has been automatically closed due to lack of activity. +# days-before-stale: 30 +# days-before-close: 7 +# operations-per-run: 100 +# remove-stale-when-updated: false +# stale-pr-label: stale +# stale-pr-message: > +# This PR has been automatically marked as stale because it has not +# had recent activity. It will be closed automatically if no further +# progress is made. \ No newline at end of file From a71bc0cd8638db8ee1361dd990c494eabda69e1b Mon Sep 17 00:00:00 2001 From: "Daniel W. Anner" Date: Fri, 3 Mar 2023 15:30:31 +0000 Subject: [PATCH 3/3] commenting out docker build for the time being --- .github/workflows/docker.yml | 110 +++++++++++++++++------------------ 1 file changed, 53 insertions(+), 57 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d825950a..438e8f45 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,59 +1,55 @@ -name: ci +# --- +# name: ci -on: - push: - branches: - - 'master' - - 'main' - pull_request: - branches: - - 'master' - - 'main' - workflow_dispatch: - release: - types: [published, edited] +# on: +# push: +# branches: +# - 'master' +# - 'main' +# pull_request: +# branches: +# - 'master' +# - 'main' +# workflow_dispatch: +# release: +# types: [published, edited] -jobs: - build-and-push-images: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v2 - - - name: Docker meta - id: meta - uses: docker/metadata-action@v3 - with: - images: | - ghcr.io/minitriga/Netbox-Device-Type-Library-Import - tags: | - type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} - type=ref,event=branch - type=ref,event=pr - type=semver,pattern={{version}} - type=semver,pattern={{major}} - type=semver,pattern={{major}}.{{minor}} - - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to GitHub Container Registry - if: github.event_name != 'pull_request' - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v2 - with: - context: . - push: ${{ github.event_name != 'pull_request' }} - platforms: linux/amd64 - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} +# jobs: +# build-and-push-images: +# runs-on: ubuntu-latest +# steps: +# - +# name: Checkout +# uses: actions/checkout@v2 +# - +# name: Docker meta +# id: meta +# uses: docker/metadata-action@v3 +# with: +# images: ghcr.io/netbox-community/Netbox-Device-Type-Library-Import +# tags: | +# type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} +# type=ref,event=branch +# type=ref,event=pr +# type=semver,pattern={{version}} +# type=semver,pattern={{major}} +# type=semver,pattern={{major}}.{{minor}} +# - name: Set up QEMU +# uses: docker/setup-qemu-action@v1 +# - name: Set up Docker Buildx +# uses: docker/setup-buildx-action@v1 +# - name: Login to GitHub Container Registry +# if: github.event_name != 'pull_request' +# uses: docker/login-action@v1 +# with: +# registry: ghcr.io +# username: ${{ github.repository_owner }} +# password: ${{ secrets.GITHUB_TOKEN }} +# - name: Build and push +# uses: docker/build-push-action@v2 +# with: +# context: . +# push: ${{ github.event_name != 'pull_request' }} +# platforms: linux/amd64 +# tags: ${{ steps.meta.outputs.tags }} +# labels: ${{ steps.meta.outputs.labels }}