Avoid double slashes in URLs relative to repository base #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Prepare | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
show-progress: false | |
- uses: gittools/actions/gitversion/[email protected] | |
with: | |
versionSpec: '5.12.x' | |
- uses: gittools/actions/gitversion/[email protected] | |
id: gitversion | |
# Build | |
- name: Inject version number | |
run: sed -i "s/^version = '.*'$/version = '${{steps.gitversion.outputs.legacySemVer}}'/" 0repo.py | |
- name: 0template | |
run: ./0install.sh run https://apps.0install.net/0install/0template.xml 0repo.xml.template version=${{steps.gitversion.outputs.legacySemVer}} | |
- name: 0test | |
run: ./0install.sh run https://apps.0install.net/0install/0test.xml 0repo-${{steps.gitversion.outputs.legacySemVer}}.xml | |
# Release | |
- name: Create GitHub Release | |
if: github.ref_type == 'tag' | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
0repo-${{steps.gitversion.outputs.legacySemVer}}.xml | |
0repo-${{steps.gitversion.outputs.legacySemVer}}.tar.bz2 | |
- name: Publish feed | |
if: github.ref_type == 'tag' | |
env: | |
GH_TOKEN: ${{secrets.PERSONAL_TOKEN}} | |
run: > | |
gh workflow run --repo=0install/apps Incoming | |
-f feed_url=https://github.com/${{github.repository}}/releases/download/${{github.ref_name}}/0repo-${{steps.gitversion.outputs.legacySemVer}}.xml | |
-f archive_url=https://github.com/${{github.repository}}/releases/download/${{github.ref_name}}/0repo-${{steps.gitversion.outputs.legacySemVer}}.tar.bz2 |