From 84651abe3656eb4f386e87a41402248ccdbace59 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Fri, 20 Oct 2023 18:30:37 +0200 Subject: [PATCH] .github/workflows: using matrix for watch-releases With the idea to reduce duplication. Signed-off-by: Vincent Demeester --- .github/workflows/watch-release.yaml | 38 ++++++++-------------------- 1 file changed, 11 insertions(+), 27 deletions(-) diff --git a/.github/workflows/watch-release.yaml b/.github/workflows/watch-release.yaml index b613b4b..4ceee46 100644 --- a/.github/workflows/watch-release.yaml +++ b/.github/workflows/watch-release.yaml @@ -6,38 +6,22 @@ on: jobs: watch-releases: + strategy: + matrix: + project: + - operator-framework/operator-sdk + - operator-framework/operator-registry + - gmeghnag/omc + - openshift-pipelines/opc runs-on: ubuntu-latest if: github.repository_owner == 'vdemeester' steps: - - name: operator-sdk + - name: ${{ project }} uses: git-for-windows/rss-to-issues@v0 with: github-token: ${{ secrets.GITHUB_TOKEN }} - feed: https://github.com/operator-framework/operator-sdk/releases.atom - prefix: "[operator-sdk]" - dry-run: false - max-age: 72h - - name: opm - uses: git-for-windows/rss-to-issues@v0 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - feed: https://github.com/operator-framework/operator-registry/releases.atom - prefix: "[opm]" - dry-run: false - max-age: 72h - - name: omc - uses: git-for-windows/rss-to-issues@v0 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - feed: https://github.com/gmeghnag/omc/releases.atom - prefix: "[omc]" - dry-run: false - max-age: 72h - - name: opc - uses: git-for-windows/rss-to-issues@v0 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - feed: https://github.com/openshift-pipelines/opc/releases.atom - prefix: "[opc]" + feed: https://github.com/${{ project }}/releases.atom + prefix: "[${{ project }}]" dry-run: false max-age: 72h +