Skip to content

Commit

Permalink
.github/workflows: using matrix for watch-releases
Browse files Browse the repository at this point in the history
With the idea to reduce duplication.

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Oct 20, 2023
1 parent 3eb9616 commit 84651ab
Showing 1 changed file with 11 additions and 27 deletions.
38 changes: 11 additions & 27 deletions .github/workflows/watch-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 84651ab

Please sign in to comment.