Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
frozenIceage authored Jul 22, 2024
1 parent 38b4e93 commit ad61451
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -25,7 +25,6 @@ jobs:
cat <<EOF > $HOME/.oscrc
[general]
apiurl=$OBS_API
[$OBS_API]
user = ${{ secrets.OSC_USER }}
pass = ${{ secrets.OSC_PASS }}
Expand All @@ -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 }}"

0 comments on commit ad61451

Please sign in to comment.