From a6ce0b607d5a030c8faeaf59384d6beb61ee5fa0 Mon Sep 17 00:00:00 2001 From: Big Andy <8012398+big-andy-coates@users.noreply.github.com> Date: Mon, 6 Mar 2023 14:21:39 +0000 Subject: [PATCH] Result of clean_up.sh --- .github/workflows/bootstrap.yml | 37 --------------------------- .github/workflows/test-scripts.yml | 40 ------------------------------ 2 files changed, 77 deletions(-) delete mode 100644 .github/workflows/bootstrap.yml delete mode 100644 .github/workflows/test-scripts.yml diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml deleted file mode 100644 index 237a5bf..0000000 --- a/.github/workflows/bootstrap.yml +++ /dev/null @@ -1,37 +0,0 @@ -# A GitHub workflow that runs when the source template repository is used to create a new repository. -# The workflow runs on the new repository, updating the repository code to the new owner and repository name, -# Once the workflow has run, this workflow file can be deleted as it serves no further purpose. - -name: Bootstrap - -on: - push: - branches: [ main ] - -permissions: - contents: read - -jobs: - boostrap: - if: ${{ github.run_number == 1 }} - permissions: - contents: write - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - name: Install zsh - run: sudo apt install zsh - - name: Run script - shell: zsh {0} - run: | - ./.creek/bootstrap.sh "${{ github.repository }}" "${{ github.repository_owner }}" - - name: Commit changes - run: | - git config --global user.email "95620007+Creek-Bot@users.noreply.github.com" - git config --global user.name "Creek Bot" - echo "adding files" - git add -A - echo "status" - git status - git commit -m "Bootstrap repo" - git push diff --git a/.github/workflows/test-scripts.yml b/.github/workflows/test-scripts.yml deleted file mode 100644 index 187f44b..0000000 --- a/.github/workflows/test-scripts.yml +++ /dev/null @@ -1,40 +0,0 @@ -# Workflow that checks the bootstrap, clean_up and add_service scripts in this repo produce valid code. - -name: Test Scripts - -on: - pull_request: - branches: [ main ] - workflow_dispatch: - -permissions: - contents: read - -jobs: - test-scripts: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - name: Install zsh - run: sudo apt install zsh - - name: Set up Java - uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b # v3.9.0 - with: - java-version: '16' - distribution: 'adopt' - cache: gradle - - name: Run boostrap script - shell: zsh {0} - run: ./.creek/bootstrap.sh "some-User-name/a_Nother-REpo_name" "some-User-name" - - name: Check compiles & runs - run: ./gradlew static test - - name: Add service - shell: zsh {0} - run: ./.creek/add_service.sh first-service - - name: Check compiles & runs - run: ./gradlew static test - - name: Add 2nd service - shell: zsh {0} - run: ./.creek/add_service.sh second-service - - name: Check compiles & runs - run: ./gradlew static test