From 83b0a6971b2e7447df86533d9452567a1d9dc910 Mon Sep 17 00:00:00 2001 From: Mateusz Walesiak Date: Tue, 9 Jan 2024 14:37:13 +0100 Subject: [PATCH 1/3] chore: Add GitHub workflows --- .github/CODEOWNERS | 2 ++ .github/stale.yml | 17 +++++++++++++++++ .github/workflows/ci.yaml | 20 ++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/stale.yml create mode 100644 .github/workflows/ci.yaml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..f51069c --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# Backend Developers will be notified of PRs and will be required to Review changes. +* @processout/api diff --git a/.github/stale.yml b/.github/stale.yml new file mode 100644 index 0000000..470349f --- /dev/null +++ b/.github/stale.yml @@ -0,0 +1,17 @@ +# Number of days of inactivity before an issue becomes stale +daysUntilStale: 30 +# Number of days of inactivity before a stale issue is closed +daysUntilClose: 7 +# Issues with these labels will never be considered stale +exemptLabels: + - pinned + - security +# Label to use when marking an issue as stale +staleLabel: stale +# Comment to post when marking an issue as stale. Set to `false` to disable +markComment: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. +# Comment to post when closing a stale issue. Set to `false` to disable +closeComment: false diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..606942b --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,20 @@ +name: "CI" + +on: + push: + branches: + - master + +jobs: + semver: + name: Semver + uses: processout/actions/.github/workflows/semver-release.yaml@master + secrets: inherit + + tag: + needs: [ semver ] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - run: git push origin ${{ needs.semver.outputs.version }} From a610ad69838e15e913e13cb79f08fa72c59161cb Mon Sep 17 00:00:00 2001 From: Mateusz Walesiak Date: Tue, 9 Jan 2024 16:43:55 +0100 Subject: [PATCH 2/3] fix: ci-merge - drop tag job --- .github/workflows/ci.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 606942b..a40e59c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,11 +10,3 @@ jobs: name: Semver uses: processout/actions/.github/workflows/semver-release.yaml@master secrets: inherit - - tag: - needs: [ semver ] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - run: git push origin ${{ needs.semver.outputs.version }} From fa276b8344d99ea6e2ac0b4eaf0e60d856076377 Mon Sep 17 00:00:00 2001 From: Mateusz Walesiak Date: Tue, 9 Jan 2024 18:49:57 +0100 Subject: [PATCH 3/3] fix semrel job --- .github/workflows/ci.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a40e59c..3e03ded 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,7 +6,14 @@ on: - master jobs: - semver: - name: Semver - uses: processout/actions/.github/workflows/semver-release.yaml@master - secrets: inherit + semrel: + name: Generate Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: go-semantic-release/action@v1 + id: semrel + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + force-bump-patch-version: true