From 1be8bf839951eaa5af8001df864a4ab6d378f7d3 Mon Sep 17 00:00:00 2001 From: Jonathan Sharpe Date: Sun, 25 Aug 2024 10:39:58 +0100 Subject: [PATCH] Remove unneeded files --- .github/workflows/keepalive.yml | 12 ------------ bin/cyf.sh | 34 --------------------------------- 2 files changed, 46 deletions(-) delete mode 100644 .github/workflows/keepalive.yml delete mode 100755 bin/cyf.sh diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml deleted file mode 100644 index a6d24a9f..00000000 --- a/.github/workflows/keepalive.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: Keep deployment alive - -on: - schedule: - - cron: "14 3 * * *" - -jobs: - ping: - runs-on: ubuntu-latest - steps: - - run: curl 'https://starter-kit-ci.herokuapp.com/api/message' diff --git a/bin/cyf.sh b/bin/cyf.sh deleted file mode 100755 index 83cd2129..00000000 --- a/bin/cyf.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail - -CHANGES="$(git status --no-untracked-files --porcelain)" - -if [ ! -z "$CHANGES" ]; then - echo 'Please commit all changes before proceeding:' - echo "$CHANGES" - exit 1 -fi - -if [[ $# -lt 1 ]] || [[ $# -gt 2 ]]; then - echo 'Usage ./bin/cyf.sh [remote]' - exit 1 -fi - -BRANCH="$1" -HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -REMOTE="${2:-}" -ROOT="$HERE/.." - -git branch -D "$BRANCH" || echo "No branch $BRANCH" -git checkout -b "$BRANCH" - -rm "$ROOT/bin/cyf.sh" -rm "$ROOT/.github/workflows/keepalive.yml" - -git add "$ROOT" -git commit --message 'Remove unneeded files' - -if [[ ! -z "$REMOTE" ]]; then - git push --force "$REMOTE" "$BRANCH:main" -fi