diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index 9a61533..a21ed27 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -30,10 +30,9 @@ jobs: - name: Create release! run: | echo ${{ github.event.repository.name }} - echo ${{ github.event.repository.owner }} - echo ${{ github.event.repository }} + echo ${GITHUB_REPOSITORY#*/} echo """release_id=$(\ - curl -s https://git.joekaufeld.com/api/v1/repos/${{ github.event.repository.owner }}/${{ github.event.repository.name }}/releases \ + curl -s https://git.joekaufeld.com/api/v1/repos/${GITHUB_REPOSITORY%/*}/${{ github.event.repository.name }}/releases \ -H "Authorization: token ${{ secrets.PAT }}" \ -d tag_name=${{ env.CURRENT_TIME_VERSION }} \ | python3 -c "import sys, json; print(json.load(sys.stdin)['id'])"\ @@ -41,6 +40,6 @@ jobs: - name: Upload assets! run: | echo ${{ env.release_id }} - echo $(curl https://git.joekaufeld.com/api/v1/repos/jkaufeld/utils/releases/${{ env.release_id }}/assets \ + curl https://git.joekaufeld.com/api/v1/repos/${GITHUB_REPOSITORY%/*}/${{ github.event.repository.name }}/releases/${{ env.release_id }}/assets \ -H "Authorization: token ${{ secrets.PAT }}" \ - -F attachment=@utils) + -F attachment=@utils