Add Repo to Archives #48
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: Add Repo to Archives | |
on: | |
workflow_dispatch: | |
inputs: | |
repo: | |
description: 'Github repo ID to add' | |
required: true | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: jbangdev/[email protected] | |
with: | |
script: archiver.java | |
scriptargs: add -T=${{ secrets.AA_TOKEN }} -W=${{ secrets.AA_DISCORD }} ${{ github.event.inputs.repo }} | |
env: | |
JBANG_REPO: /root/.jbang/repository | |
- name: Check submodules | |
run: git submodule | |
- name: Can't bother fixing this issue | |
run: rm -f .git/COMMIT_EDITMSG | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Archived ${{ github.event.inputs.repo }} |