Compare commits
26 Commits
v4.5.6
...
release/4.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be3cb4b259 | ||
|
|
788aa0d4b5 | ||
|
|
490cc0c703 | ||
|
|
cfd959c2e0 | ||
|
|
43287ec9cf | ||
|
|
4bc423721a | ||
|
|
5ef1917f61 | ||
|
|
3b98325435 | ||
|
|
7688e0cbc7 | ||
|
|
5595250e09 | ||
|
|
4e8f7f271f | ||
|
|
f2db146379 | ||
|
|
11e6e12f60 | ||
|
|
56827f467a | ||
|
|
34a05d36a6 | ||
|
|
bb1ee93cb9 | ||
|
|
de64657f2c | ||
|
|
32e0aac7fa | ||
|
|
d62945518b | ||
|
|
a73381dafa | ||
|
|
3c564909d0 | ||
|
|
e65ddbcdfd | ||
|
|
71f3728648 | ||
|
|
54b0888107 | ||
|
|
0a056599a3 | ||
|
|
18c361ce7f |
81
.github/workflows/publish-release.yml
vendored
Normal file
81
.github/workflows/publish-release.yml
vendored
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
name: Publish Release
|
||||||
|
on: workflow_dispatch
|
||||||
|
jobs:
|
||||||
|
job:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: startsWith(github.ref, 'refs/heads/release/')
|
||||||
|
steps:
|
||||||
|
- name: Validate the release
|
||||||
|
uses: actions/github-script@v4
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const ver = "${{ github.ref }}".substring(19)
|
||||||
|
const tag = "v" + ver
|
||||||
|
var rel
|
||||||
|
try {
|
||||||
|
rel = await github.repos.getReleaseByTag({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
tag: tag
|
||||||
|
})
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
core.setFailed(`Could not find a release for tag ${tag}.`)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!rel.draft) {
|
||||||
|
core.setFailed(`Release for tag ${tag} is already published.`)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
const ref = await github.git.getRef({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
ref: 'tags/' + tag
|
||||||
|
})
|
||||||
|
core.setFailed(`Tag ${tag} already exists.`)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
// this is expected
|
||||||
|
}
|
||||||
|
// everything is OK
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Configure repository
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
git config user.email "github-actions@hazelcast.com"
|
||||||
|
git config user.name "GitHub Actions (Build Release)"
|
||||||
|
|
||||||
|
- name: Finalize the release
|
||||||
|
run: |
|
||||||
|
ref="${{ github.ref }}"
|
||||||
|
branch="${ref:11}" # trim starting 'refs/heads/' (11 chars)
|
||||||
|
version="${ref:19}" # trim starting 'refs/heads/release/' (19 chars)
|
||||||
|
echo "Tag branch $branch as v$version"
|
||||||
|
git tag v$version
|
||||||
|
git push --tags
|
||||||
|
#git push :$branch
|
||||||
|
|
||||||
|
- name: Publish the release
|
||||||
|
uses: actions/github-script@v4
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const ver = "${{ github.ref }}".substring(19)
|
||||||
|
const tag = "v" + ver
|
||||||
|
const rel = await github.repos.getReleaseByTag({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
tag: tag
|
||||||
|
})
|
||||||
|
await github.repos.updateRelease({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
release_id: rel.id,
|
||||||
|
draft: false
|
||||||
|
})
|
||||||
26
.github/workflows/rest-description.yml
vendored
Normal file
26
.github/workflows/rest-description.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: Toy with issue description
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: labeled
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
toy-desc:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: |
|
||||||
|
!contains(github.event.issue.title, '!exclude!') ||
|
||||||
|
contains(github.event.issue.title, '!force!')
|
||||||
|
steps:
|
||||||
|
- name: Toy with issue description
|
||||||
|
uses: actions/github-script@v4.0.2
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const title = `${{ github.event.issue.title }} !`
|
||||||
|
const body = `updated\n${{ github.event.issue.body }}`
|
||||||
|
github.issues.update({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
title: title,
|
||||||
|
body: body
|
||||||
|
})
|
||||||
|
|
||||||
34
INDEX.md
34
INDEX.md
@@ -1,34 +0,0 @@
|
|||||||
# A Git(Hub) Test Repository
|
|
||||||
|
|
||||||
TESTING
|
|
||||||
|
|
||||||
Hey! This is my personal Git(Hub) Test Repository where I experiment with Git and GitHub.
|
|
||||||
|
|
||||||
If you are new to Git and GitHub and found this repository through Google: feel free to clone the repository and experiment with it! You will not be able to push back to the repository, as it is *my* repository and I cannot let everybody push to it. The right way to do it on GitHub is:
|
|
||||||
|
|
||||||
1. fork the repository in your own account,
|
|
||||||
2. make changes and push them in a branch of your own fork,
|
|
||||||
3. create a Pull Request in my repository.
|
|
||||||
|
|
||||||
I will get notified, will review the changes that you propose, and eventually will either merge the changes, or reject them. This *may* take some time as I am not actively monitoring nor maintaining this repository, as you can guess, but I try to be helpful ;)
|
|
||||||
|
|
||||||
Don't expect to find anything meaningful nor useful in the repository. Also, I happen to force-push a reset of everything from time to time. This means that I reset all history, including changes that you may have submitted. In theory, noone ever does this to a repository. But hey, this is a *test* repository after all.
|
|
||||||
|
|
||||||
The rest of this README file is mostly random stuff.
|
|
||||||
|
|
||||||
Clone the repository with: `git clone https://github.com/zpqrtbnk/test-repo.git .`
|
|
||||||
|
|
||||||
We have test GitHUb pages (from the `gh-pages` branch) at: http://zpqrtbnk.github.io/test-repo/
|
|
||||||
|
|
||||||
We have an image in the README (markdown)
|
|
||||||

|
|
||||||
|
|
||||||
We have an image in the README (html)
|
|
||||||
<img src="./wtf.jpg" />
|
|
||||||
|
|
||||||
We have an image in the README (more html)
|
|
||||||
<p align="center" style="background:#000;padding:5px;color:#fff;font-size:150%;margin-bottom:64px">
|
|
||||||
<img src="./wtf.jpg" />
|
|
||||||
<span style="margin-left:48px;">wubble</span>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
32
README.md
Normal file
32
README.md
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# A Git(Hub) Test Repository
|
||||||
|
|
||||||
|
Hey! This is my personal Git(Hub) Test Repository where I experiment with Git and GitHub.
|
||||||
|
|
||||||
|
If you are new to Git and GitHub and found this repository through Google: feel free to clone the repository and experiment with it! You will not be able to push back to the repository, as it is *my* repository and I cannot let everybody push to it. The right way to do it on GitHub is:
|
||||||
|
|
||||||
|
1. fork the repository in your own account,
|
||||||
|
2. make changes and push them in a branch of your own fork,
|
||||||
|
3. create a Pull Request in my repository.
|
||||||
|
|
||||||
|
I will get notified, will review the changes that you propose, and eventually will either merge the changes, or reject them. This *may* take some time as I am not actively monitoring nor maintaining this repository, as you can guess, but I try to be helpful ;)
|
||||||
|
|
||||||
|
Don't expect to find anything meaningful nor useful in the repository. Also, I happen to force-push a reset of everything from time to time. This means that I reset all history, including changes that you may have submitted. In theory, noone ever does this to a repository. But hey, this is a *test* repository after all.
|
||||||
|
|
||||||
|
The rest of this README file is mostly random stuff.
|
||||||
|
|
||||||
|
Clone the repository with: `git clone https://github.com/zpqrtbnk/test-repo.git .`
|
||||||
|
|
||||||
|
We have test GitHUb pages (from the `gh-pages` branch) at: http://zpqrtbnk.github.io/test-repo/
|
||||||
|
|
||||||
|
We have an image in the README (markdown)
|
||||||
|

|
||||||
|
|
||||||
|
We have an image in the README (html)
|
||||||
|
<img src="./wtf.jpg" />
|
||||||
|
|
||||||
|
We have an image in the README (more html)
|
||||||
|
<p align="center" style="background:#000;padding:5px;color:#fff;font-size:150%;margin-bottom:64px">
|
||||||
|
<img src="./wtf.jpg" />
|
||||||
|
<span style="margin-left:48px;">wubble</span>
|
||||||
|
</p>
|
||||||
|
|
||||||
Reference in New Issue
Block a user