experimental tag/release pipeline
Tag and release / Set tag and create release (push) Failing after 3s Details
Tag and release / Update xbps-src template (push) Has been skipped Details

This commit is contained in:
Luca Bilke 2024-05-22 17:46:23 +02:00
parent 5b5bb3afc5
commit c766b1304a
No known key found for this signature in database
GPG Key ID: B753481DA0B6FA47
1 changed files with 19 additions and 1 deletions

View File

@ -9,6 +9,7 @@ on:
jobs:
release:
name: Set tag and create release
runs-on: ubuntu-latest
outputs:
sha256: ${{ steps.archive.outputs.sha256 }}
@ -34,16 +35,33 @@ jobs:
make dist
echo "sha256=$(sha256sum dwm.tar.gz) >> $GITHUB_OUTPUT"
template:
- name: Create release
uses: forgejo-release@v1
with:
direction: upload
url: https://git.snaile.de
release-dir: ./
update-template:
name: Update xbps-src template
runs-on: ubuntu-latest
needs: release
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.FORGEJO_PUSH_TOKEN }}
repository: "https://git.snaile.de/snailed/void-packages"
- name: Replace checksum and version
run: |
sed -i 's/version=[0-9]\+\.[0-9]\+\.[0-9]\+/version=${{ needs.release.outputs.version }}/' srcpkgs/dwm-custom/template
sed -i 's/checksum=.\+/checksum=${{ needs.release.outputs.sha256 }}/' srcpkgs/dwm-custom/template
- name: Commit
uses: https://github.com/stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0
with:
commit_user_name: "Johnny5"
commit_user_email: "bot@snaile.de"
commit_author: "Johnny5 <bot@snaile.de>"
commit_message: "dwm-custom: update to ${{ needs.release.outputs.version }}."