Skip to content

Commit

Permalink
ci: add semantic job for generating redhat versions
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Oct 29, 2024
1 parent c20295c commit 44a250c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,39 @@ jobs:
path: /tmp/debian-versions-generator-cache.csv
key: ${{ runner.os }}-${{ hashFiles('debian-db.zip') }}

generate-redhat-versions:
permissions:
contents: read # to fetch code (actions/checkout)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- uses: actions/cache/restore@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
with:
path: /tmp/redhat-versions-generator-cache.csv
key: ${{ runner.os }}-

- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
persist-credentials: false
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.10"
- run: sudo apt install rpm
- run: rpm --version
- run: python3 scripts/generators/generate-redhat-versions.py
- run: git status
- run: stat redhat-db.zip
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: generated-redhat-versions
path: internal/semantic/fixtures/redhat-versions-generated.txt

- uses: actions/cache/save@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
with:
path: /tmp/redhat-versions-generator-cache.csv
key: ${{ runner.os }}-${{ hashFiles('redhat-db.zip') }}

generate-packagist-versions:
permissions:
contents: read # to fetch code (actions/checkout)
Expand Down Expand Up @@ -173,6 +206,7 @@ jobs:
- generate-rubygems-versions
- generate-maven-versions
- generate-cran-versions
- generate-redhat-versions
if: always()
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
Expand Down

0 comments on commit 44a250c

Please sign in to comment.