Skip to content

Commit

Permalink
workflow: RIP TWLBot
Browse files Browse the repository at this point in the history
- Remove uploading to TWLBot
- Remove Discord webhook temporarily until a non-TWLBot solution is
  found
  • Loading branch information
lifehackerhansol committed Aug 18, 2024
1 parent a9d16df commit 873ae98
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 113 deletions.
65 changes: 0 additions & 65 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ jobs:
runs-on: ubuntu-latest
container: devkitpro/devkitarm
name: Build with Docker using devkitARM
outputs:
commit_tag: ${{ steps.make-cias.outputs.commit_tag }}
commit_hash: ${{ steps.make-cias.outputs.commit_hash }}
author_name: ${{ steps.make-cias.outputs.author_name }}
committer_name: ${{ steps.make-cias.outputs.committer_name }}
commit_subject: ${{ steps.make-cias.outputs.commit_subject }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -36,14 +30,6 @@ jobs:
- name: Setup environment
run: |
git config --global safe.directory '*'
echo "commit_tag=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT
echo "commit_hash=$(git log --format=%h -1)" >> $GITHUB_OUTPUT
# Webhook info
echo "author_name=$(git log -1 $GITHUB_SHA --pretty=%aN)" >> $GITHUB_OUTPUT
echo "committer_name=$(git log -1 $GITHUB_SHA --pretty=%cN)" >> $GITHUB_OUTPUT
echo "commit_subject=$(git log -1 $GITHUB_SHA --pretty=%s)" >> $GITHUB_OUTPUT
- name: Get manual pages
run: |
cd manual/nitrofiles
Expand Down Expand Up @@ -135,54 +121,3 @@ jobs:
with:
path: ~/artifacts/TWiLightMenu.7z
name: build

# Only run this for non-PR jobs.
publish_build:
runs-on: ubuntu-latest
name: Publish build to ???
if: ${{ success() && !startsWith(github.ref, 'refs/pull') }}
needs: build
env:
COMMIT_TAG: ${{ needs.build.outputs.commit_tag }}
COMMIT_HASH: ${{ needs.build.outputs.commit_hash }}
AUTHOR_NAME: ${{ needs.build.outputs.author_name }}
COMMIT_SUBJECT: ${{ needs.build.outputs.commit_subject }}
COMMIT_MESSAGE: ${{ needs.build.outputs.commit_message }}
outputs:
current_date: ${{ steps.commit.outputs.current_date }}
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: build
path: build

send_success_webhook:
runs-on: ubuntu-latest
needs: [publish_build, build]
name: Send success webhook
if: ${{ !startsWith(github.ref, 'refs/pull') && success() }}
env:
CURRENT_DATE: ${{ needs.publish_build.outputs.current_date }}
AUTHOR_NAME: ${{ needs.build.outputs.author_name }}
COMMITTER_NAME: ${{ needs.build.outputs.committer_name }}
COMMIT_SUBJECT: ${{ needs.build.outputs.commit_subject }}
COMMIT_MESSAGE: ${{ needs.build.outputs.commit_message }}
steps:
- name: Send success webhook
run: |
curl -o send.sh https://raw.githubusercontent.com/DS-Homebrew/discord-webhooks/master/send-ghactions.sh
chmod +x send.sh
./send.sh success ${{ secrets.WEBHOOK_URL }}
send_failure_webhook:
runs-on: ubuntu-latest
needs: [publish_build, build]
name: Send failure webhook
if: ${{ !startsWith(github.ref, 'refs/pull') && failure() }}
steps:
- name: Send failure webhook
run: |
curl -o send.sh https://raw.githubusercontent.com/DS-Homebrew/discord-webhooks/master/send-ghactions.sh
chmod +x send.sh
./send.sh failure ${{ secrets.WEBHOOK_URL }}
48 changes: 0 additions & 48 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ jobs:
runs-on: ubuntu-latest
container: devkitpro/devkitarm
name: Build with Docker using devkitARM
outputs:
commit_tag: ${{ steps.make-cias.outputs.commit_tag }}
commit_hash: ${{ steps.make-cias.outputs.commit_hash }}
author_name: ${{ steps.make-cias.outputs.author_name }}
committer_name: ${{ steps.make-cias.outputs.committer_name }}
commit_subject: ${{ steps.make-cias.outputs.commit_subject }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -28,14 +22,6 @@ jobs:
- name: Setup environment
run: |
git config --global safe.directory '*'
echo "commit_tag=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT
echo "commit_hash=$(git log --format=%h -1)" >> $GITHUB_OUTPUT
# Webhook info
echo "author_name=$(git log -1 $GITHUB_SHA --pretty=%aN)" >> $GITHUB_OUTPUT
echo "committer_name=$(git log -1 $GITHUB_SHA --pretty=%cN)" >> $GITHUB_OUTPUT
echo "commit_subject=$(git log -1 $GITHUB_SHA --pretty=%s)" >> $GITHUB_OUTPUT
- name: Get manual pages
run: |
cd manual/nitrofiles
Expand Down Expand Up @@ -194,11 +180,6 @@ jobs:
name: "Publish build to ${{ github.repository }}"
if: ${{ success() }}
needs: build
env:
COMMIT_TAG: ${{ needs.build.outputs.commit_tag }}
outputs:
current_date: ${{ steps.commit.outputs.current_date }}
twlbot_commit: ${{ steps.commit.outputs.twlbot_commit }}
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
Expand All @@ -220,32 +201,3 @@ jobs:
curl -XPOST -H "$AUTH_HEADER" -H "$CONTENT_LENGTH" -H "$CONTENT_TYPE" --upload-file "$file" "$UPLOAD_URL"
done
send_success_webhook:
runs-on: ubuntu-latest
needs: [publish_build, build]
name: Send success webhook
if: ${{ !startsWith(github.ref, 'refs/pull') && success() }}
env:
CURRENT_DATE: ${{ needs.publish_build.outputs.current_date }}
AUTHOR_NAME: ${{ needs.build.outputs.author_name }}
COMMITTER_NAME: ${{ needs.build.outputs.committer_name }}
COMMIT_SUBJECT: ${{ needs.build.outputs.commit_subject }}
steps:
- name: Send success webhook
run: |
curl -o send.sh https://raw.githubusercontent.com/DS-Homebrew/discord-webhooks/master/send-ghactions.sh
chmod +x send.sh
./send.sh success ${{ secrets.WEBHOOK_URL }}
send_failure_webhook:
runs-on: ubuntu-latest
needs: [publish_build, build]
name: Send failure webhook
if: ${{ !startsWith(github.ref, 'refs/pull') && failure() }}
steps:
- name: Send failure webhook
run: |
curl -o send.sh https://raw.githubusercontent.com/DS-Homebrew/discord-webhooks/master/send-ghactions.sh
chmod +x send.sh
./send.sh failure ${{ secrets.WEBHOOK_URL }}

0 comments on commit 873ae98

Please sign in to comment.