diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index adf54d2..1360fe6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,13 +9,13 @@ jobs: runs-on: ubuntu-latest env: OBS_API: https://api.opensuse.org/ - PROJECT: home:ChHuang + PROJECT: openSUSE:Factory PACKAGE: osc-tiny steps: - uses: actions/checkout@master - name: Get latest release tag id: get_latest_release - run: echo "LATEST_TAG=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV + run: echo "LATEST_TAG=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV - name: Install osc run: | sudo apt-get update -y @@ -25,7 +25,6 @@ jobs: cat < $HOME/.oscrc [general] apiurl=$OBS_API - [$OBS_API] user = ${{ secrets.OSC_USER }} pass = ${{ secrets.OSC_PASS }} @@ -50,8 +49,8 @@ jobs: - name: Update spec and changes files run: | cd $PROJECT:branches:$PROJECT/python-$PACKAGE - sed -i "s/^Version:.*/Version: ${{ env.LATEST_TAG }}/" *.spec + sed -i "s/^Version:.*/Version: ${{ env.LATEST_TAG }}/" *.spec sed -i "s/%setup -q -n osc-tiny-%{version}/%setup -q -n osc_tiny-%{version}/" *.spec - osc vc -m 'Update to version ${{ env.LATEST_TAG }}' + osc vc -m "Update to version ${{ env.LATEST_TAG }}" osc commit -m "Update to version ${{ env.LATEST_TAG }}" --noservice osc submitrequest -m "Update package to version ${{ env.LATEST_TAG }}"