Skip to content

Commit

Permalink
publish-aur.yaml fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jasursadikov committed Nov 6, 2024
1 parent 6d973e5 commit bd4da7d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish-aur.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Get Version from Tag
id: get_version
run: echo "VERSION=$(git describe --tags --abbrev=0 | sed 's/^v//')" >> $GITHUB_ENV
with:
fetch-depth: 0
ref: master

- name: Update PKGBUILD with New Version
- name: Update PKGBUILD with Tag Version
run: |
sed -i "s/^pkgver=.*/pkgver=${{ env.VERSION }}/" PKGBUILD
git describe --tags --abbrev=0 | sed 's/^v//'
sed -i "s/^pkgver=.*/pkgver=$(git describe --tags --abbrev=0 | sed 's/^v//')/" PKGBUILD
cat PKGBUILD
- name: Publish AUR package
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v3
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: master

- name: Set up Python
uses: actions/setup-python@v4
Expand Down

0 comments on commit bd4da7d

Please sign in to comment.