diff options
author | GitHub Action <action@github.com> | 2023-07-21 10:15:53 +0000 |
---|---|---|
committer | GitHub Action <action@github.com> | 2023-07-21 10:15:53 +0000 |
commit | 4f8ca665888f10504d2995e9bed4b95ea60554c3 (patch) | |
tree | c9894a5c302d4b1665f4f6aabfc285b00f90849a /.github | |
parent | 2c7e371cb8d566875d767dd20c4a1287d5275b2c (diff) | |
download | SkyblockPlayersAnonymous-4f8ca665888f10504d2995e9bed4b95ea60554c3.tar.gz SkyblockPlayersAnonymous-4f8ca665888f10504d2995e9bed4b95ea60554c3.tar.bz2 SkyblockPlayersAnonymous-4f8ca665888f10504d2995e9bed4b95ea60554c3.zip |
Initialize template repository proper
Set package name to com.github.romangraef.skyblockplayersanonymous
Set project name to SkyblockPlayersAnonymous
Set modid to skyblockplayersanonymous
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/init.yml | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/.github/workflows/init.yml b/.github/workflows/init.yml deleted file mode 100644 index c18810f..0000000 --- a/.github/workflows/init.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Initialize Template Repo -on: - - push - -permissions: - contents: write - -jobs: - cleanup: - name: "Initialize Repo" - runs-on: ubuntu-latest - if: github.event.repository.name != 'Forge1.8.9Template' - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - name: Initialize Repo - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - owner=$(echo $GITHUB_REPOSITORY | cut -d/ -f1 | tr '[:upper:]' '[:lower:]') - name=$(echo $GITHUB_REPOSITORY | cut -d/ -f2 | tr '[:upper:]' '[:lower:]' | tr -d "-" | tr -d ".") - pack_name="com.github.${owner,,}.${name,,}" - proj_name="$(echo $GITHUB_REPOSITORY | cut -d/ -f2)" - modid="$(echo $name | sed 's/[^a-z]//g')" - ./make-my-own.sh "$pack_name" "$proj_name" "$modid" - git add . - git commit -F- <<EOF - Initialize template repository proper - - Set package name to $pack_name - Set project name to $proj_name - Set modid to $modid - EOF - - name: Push changes - uses: ad-m/github-push-action@v0.6.0 - with: - branch: ${{ github.ref }} - github_token: ${{ secrets.GITHUB_TOKEN }} |