From 744ee0c451ce7c360a495540239af97f6dba565d Mon Sep 17 00:00:00 2001 From: Ivan <61116326+Gridness@users.noreply.github.com> Date: Sun, 14 Sep 2025 21:34:40 +0300 Subject: [PATCH 1/2] Create main.yaml --- .github/workflows/main.yaml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..6418c90 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,39 @@ +name: Create Release and update README + +on: + push: + tags: + - "*.*.*" + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v5.0.0 + + - name: Set up git user + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + - name: Create GitHub release + uses: actions/create-release@v1 + with: + tag_name: ${{ env.RELEASE_TAG }} + release_name: Release ${{ env.RELEASE_TAG }} + draft: false + prerelease: false + body: "See: https://github.com/Gridness/k8s-hooks/commits/${{ env.RELEASE_TAG }}" + + - name: Update README with new tag + run: | + sed -i "s|rev: .*|rev: ${RELEASE_TAG} # updated by release action|" README.md + + - name: Commit and push README update + run: | + git add README.md + git commit -m "chore: update rev tag to ${RELEASE_TAG} in README" + git push + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 3884c21fd84d234caefe2ecc1cdc681ac82d949b Mon Sep 17 00:00:00 2001 From: Ivan <61116326+Gridness@users.noreply.github.com> Date: Sun, 14 Sep 2025 21:35:11 +0300 Subject: [PATCH 2/2] Create dependabot.yaml --- .github/dependabot.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/dependabot.yaml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..6c5049e --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + groups: + github-actions: + patterns: + - "*"