Skip to content

Commit

Permalink
[CI] - status
Browse files Browse the repository at this point in the history
  • Loading branch information
elidakirigo committed May 13, 2024
1 parent a185eed commit 3c83af4
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/autodeleteOldBranch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Cleanup old branches
on:
push:
branches:
- master
- develop
jobs:
housekeeping:
name: Cleanup old branches
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run delete-old-branches-action
uses: beatlabs/[email protected]
with:
repo_token: ${{ github.token }}
date: '3 months ago'
dry_run: true
delete_tags: true
minimum_tags: 5
extra_protected_branch_regex: ^(foo|bar)$
extra_protected_tag_regex: '^v.*'
exclude_open_pr_branches: true
24 changes: 24 additions & 0 deletions .github/workflows/notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
ssh -i ~/.ssh/rd_rsa

TEST="HELLO WORLD"
echo $TEST

$TEST > [file name]

cat [file name]

rm ~/.ssh/known_hosts

cat ~/.ssh/known_hosts

Wb3rvTirMomt2wdf8Dun

ssh-keygen -t rsa -b 4096 -C "[email protected]"
ssh-keygen -t ed25519 -a 200 -C "[email protected]"
cat .ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys'
cat .ssh/id_ed25519.pub | ssh [email protected] 'cat >> .ssh/authorized_keys'

sudo apt update
sudo apt install git

ssh -i ~/.ssh/id_ed25519 [email protected]
18 changes: 18 additions & 0 deletions .github/workflows/statusBadge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: status Badge

on:
# push:
# branches: [main]
pull_request_target:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: mshick/add-pr-comment@v2
with:
message: |
'[![Build NextApp Preview and Deploy](https://github.com/dogdb-org/dogdb-frontend/actions/workflows/preview.yaml/badge.svg?branch=${{github.ref_name}}&event=push)](https://github.com/dogdb-org/dogdb-frontend/actions/workflows/preview.yaml) [DogDB - ${{github.ref_name}} link](https://preview.dogdb.org/${{secrets.DOGDB_PREVIEW_FRONTEND_FOLDER_NAME}}/${{secrets.DOGDB_PREVIEW_FRONTEND_FOLDER_NAME}}-${{ github.ref_name }}/out)'

0 comments on commit 3c83af4

Please sign in to comment.