Merge pull request #3378 from SUSE/for-deploy-Tumbleweed #1575
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Check whether packages are missing on OBS | |
| on: | |
| push: | |
| branches: | |
| - 'Tumbleweed' | |
| permissions: | |
| contents: read | |
| issues: write | |
| jobs: | |
| create-issues-for-dockerfile-generator: | |
| name: create an issue about missing packages in devel:BCI | |
| runs-on: ubuntu-latest | |
| container: registry.opensuse.org/opensuse/bci/bci-ci:latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| # we need all branches for the build checks | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| ref: main | |
| token: ${{ secrets.CHECKOUT_TOKEN }} | |
| - uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pypoetry/virtualenvs | |
| key: poetry-${{ hashFiles('poetry.lock') }} | |
| - name: fix the file permissions of the repository | |
| run: chown -R $(id -un):$(id -gn) . | |
| - name: install python dependencies | |
| run: poetry install | |
| - name: find the packages that are missing | |
| run: | | |
| pkgs=$(poetry run scratch-build-bot --os-version Tumbleweed find_missing_packages) | |
| if [[ ${pkgs} = "" ]]; then | |
| echo "missing_pkgs=false" >> $GITHUB_ENV | |
| else | |
| echo "missing_pkgs=true" >> $GITHUB_ENV | |
| echo "pkgs=${pkgs}" >> $GITHUB_ENV | |
| fi | |
| cat test-build.env >> $GITHUB_ENV | |
| env: | |
| OSC_PASSWORD: ${{ secrets.OSC_PASSWORD }} | |
| OSC_USER: 'pushman' | |
| - uses: JasonEtco/create-an-issue@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| update_existing: true | |
| filename: ".github/create-package.md" | |
| if: env.missing_pkgs == 'true' |