Skip to content

Commit

Permalink
Merge branch 'main' into HenSquared-patch-11
Browse files Browse the repository at this point in the history
  • Loading branch information
HenSquared authored May 31, 2024
2 parents d830394 + 7879d4c commit f8baa76
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
32 changes: 32 additions & 0 deletions .github/workflows/test_branch_exists.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This is a basic workflow to help you get started with Actions

name: Test if branch exists

# Controls when the workflow will run
on:
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Test-Branch:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: Check branch exists
run: |
UPDATE_SNAPSHOT_BRANCH_NAME="hj/test_branch"
existed_in_remote=$(git ls-remote --heads origin $UPDATE_SNAPSHOT_BRANCH_NAME)
if [[ -z ${existed_in_remote} ]]; then
echo "doesnn't exist"
exit 1
else
echo "exists"
exit 0
fi
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
thajsjsjsjsjj<details>


chachachabges
changes some more changes

some changes

test yoooooothajsjsjsjsjj<details>
<summary>Click me</summary>

### Heading
Expand Down
2 changes: 1 addition & 1 deletion nice
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a commit!
wow cool
9 changes: 9 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
UPDATE_SNAPSHOT_BRANCH_NAME="hj/test_branch"
existed_in_remote=$(git ls-remote --heads origin $UPDATE_SNAPSHOT_BRANCH_NAME)
if [[ -z ${existed_in_remote} ]]; then
echo "doesnn't exist"
exit 1
else
echo "exists"
exit 0
fi

0 comments on commit f8baa76

Please sign in to comment.