Skip to content

Commit

Permalink
Fix syntactical and other various errors
Browse files Browse the repository at this point in the history
  • Loading branch information
arcivanov committed Oct 28, 2024
1 parent db23245 commit c0a7382
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 9 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,18 @@ runs:
with:
python-version: "3.12"
- name: Install pre-requisites
shell: bash
run: pip install --break-system-packages --no-input requests
- name: Upload COPR results to GH Release assets
shell: bash
run: |
python copr-to-gh-release.py \
python ${{ github.action_path }}/copr-to-gh-release.py \
--copr-owner-name=${{ inputs.copr-owner-name }} \
--copr-project-name=${{ inputs.copr-project-name }} \
--copr-package-name=${{ inputs.copr-package-name}} \
${{ inputs.tag-to-version-regex != "" && "--tag-to-versoin-regex=" + inputs.tag-to-version-regex || "" }} \
${{ inputs.tag != "" && "--tag" + inputs.tag || "" }} \
${{ inputs.fetch-tags && "--fetch-tags" || "" }} \
${{ inputs.clobber-assets && "--clobber-assets" || "" }} \
${{ inputs.no-ignore-epoch && "--no-ignore-epoch" || "" }} \
${{ inputs.wait-build && "--wait-build" || "" }}
${{ inputs.tag-to-version-regex != '' && format('--tag-to-version-re=''{0}''', inputs.tag-to-version-regex) || '' }} \
${{ inputs.tag != '' && format('--tag={0}', inputs.tag) || '' }} \
${{ inputs.fetch-tags && '--fetch-tags' || '' }} \
${{ inputs.clobber-assets && '--clobber-assets' || '' }} \
${{ inputs.no-ignore-epoch && '--no-ignore-epoch' || '' }} \
${{ inputs.wait-build && '--wait-build' || '' }}
1 change: 0 additions & 1 deletion copr-to-gh-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from time import sleep

import requests
from paramiko.proxy import subprocess

parser = argparse.ArgumentParser(description="COPR to GH Release Synchronizer",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
Expand Down

0 comments on commit c0a7382

Please sign in to comment.