From aa1ce7ed36a0cc68456fae7ccae1a2ff7e7a73b1 Mon Sep 17 00:00:00 2001 From: Novikov Sergey Date: Wed, 10 Apr 2024 10:00:17 +0200 Subject: [PATCH] OPS-0 Update actions (#13) * OPS-0 Add dependabot * OPS-0 Update actions * OPS-0 Minor fix --- .github/dependabot.yml | 9 +++++++++ .github/workflows/lint.yml | 22 +--------------------- .github/workflows/release-drafter.yml | 8 ++++++-- .github/workflows/test.yml | 19 +------------------ 4 files changed, 17 insertions(+), 41 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..ad4645f --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: weekly + day: monday + time: "08:00" + timezone: Europe/Berlin diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 56b4ee4..646efc4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,22 +1,9 @@ --- - -# ------------------------------------------------------------------------------------------------- -# Job Name -# ------------------------------------------------------------------------------------------------- name: lint - -# ------------------------------------------------------------------------------------------------- -# When to run -# ------------------------------------------------------------------------------------------------- on: - # Runs on Pull Requests pull_request: - -# ------------------------------------------------------------------------------------------------- -# What to run -# ------------------------------------------------------------------------------------------------- jobs: lint: name: "Lint" @@ -29,17 +16,10 @@ jobs: - gen steps: - # ------------------------------------------------------------ - # Setup repository - # ------------------------------------------------------------ - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - - # ------------------------------------------------------------ - # Lint repository - # ------------------------------------------------------------ - name: "make ${{ matrix.target }}" run: | retry() { diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index e627dfd..9e4f7ff 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -1,15 +1,19 @@ +--- name: Release Drafter on: push: - # branches to consider in the event; optional, defaults to all branches: - master +permissions: + contents: write + pull-requests: write + jobs: update_release_draft: runs-on: ubuntu-latest steps: - - uses: release-drafter/release-drafter@v5 + - uses: release-drafter/release-drafter@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8033ab8..b5611a9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,33 +1,16 @@ --- - -# ------------------------------------------------------------------------------------------------- -# Job Name -# ------------------------------------------------------------------------------------------------- name: test - -# ------------------------------------------------------------------------------------------------- -# When to run -# ------------------------------------------------------------------------------------------------- on: - # Runs on Pull Requests pull_request: - -# ------------------------------------------------------------------------------------------------- -# What to run -# ------------------------------------------------------------------------------------------------- jobs: test: name: Test runs-on: ubuntu-latest steps: - - # ------------------------------------------------------------ - # Checkout repository - # ------------------------------------------------------------ - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0