diff --git a/.github/workflows/publish-aur.yaml b/.github/workflows/publish-aur.yaml index a74ac05..6badc07 100644 --- a/.github/workflows/publish-aur.yaml +++ b/.github/workflows/publish-aur.yaml @@ -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 diff --git a/.github/workflows/publish-pypi.yaml b/.github/workflows/publish-pypi.yaml index 84d709c..f1cbe80 100644 --- a/.github/workflows/publish-pypi.yaml +++ b/.github/workflows/publish-pypi.yaml @@ -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