Fix TWLBot stuff

This commit is contained in:
NightScript
2020-07-15 15:50:40 -07:00
committed by GitHub
parent 81199344ff
commit 32adb06410
+4 -4
View File
@@ -71,7 +71,7 @@ jobs:
with:
name: "build"
path: "build"
- name: Upload to Universal-Team/Universal-Updater release
- name: Upload to ${{ github.repository }} release
if: ${{ startsWith(github.ref, 'refs/tags') }}
run: |
ID=$(jq --raw-output '.release.id' $GITHUB_EVENT_PATH)
@@ -92,15 +92,15 @@ jobs:
git config --global user.email "flamekat54@aol.com"
git config --global user.name "TWLBot"
git clone --depth 1 https://${{ secrets.TWLBOT_TOKEN }}@github.com/TWLBot/Builds.git
mkdir extras/builds/Universal-Updater/
git clone --depth 1 https://${{ secrets.TWLBOT_TOKEN }}@github.com/Universal-Team/extras.git
mkdir -p extras/builds/Universal-Updater/
qrencode -o extras/builds/Universal-Updater/Universal-Updater-release.png https://github.com/Universal-Team/Universal-Updater/releases/download/$(git describe --abbrev=0 --tags)/Universal-Updater.cia
cd extras/builds/Universal-Updater/
cp ${{ github.workspace }}/build/* .
git stage .
git commit -m "Universal Updater | $COMMIT_TAG"
git tag v$CURRENT_DATE
git push origin v$CURRENT_DATE
git push origin master v$CURRENT_DATE
echo "::set-output name=twlbot_commit::$(git log --format=%H -1)"
- name: Release to Universal-Team/extras
run: |