72 Commits

Author SHA1 Message Date
GitHub Actions
c014e91817 Foo 2021-12-12 18:31:34 +00:00
Stephan
888cfb7f0c wtf 2021-12-12 18:59:37 +01:00
Stephan
febd814501 wtf 2021-12-10 20:14:59 +01:00
Stephan
91716319e5 wtf 2021-12-10 20:10:08 +01:00
Stephan
95a34adfba wtf 2021-12-10 19:52:22 +01:00
Stephan
0865ac62e2 wtf 2021-12-10 19:47:20 +01:00
Stephan
fa26cc9ba1 wtf 2021-12-10 19:45:07 +01:00
Stephan
06622d8529 wtf 2021-12-10 19:36:59 +01:00
Stephan
6e884a3321 wtf 2021-12-10 19:34:47 +01:00
Stephan
26f94b13a3 wtf 2021-12-10 19:32:14 +01:00
Stephan
543d33a363 wtf 2021-12-10 19:04:10 +01:00
Stephan
08c6b3a2e3 wtf 2021-12-10 18:38:01 +01:00
Stephan
fe62eb455c wtf 2021-12-10 18:36:27 +01:00
Stephan
139af4526d wtf 2021-12-10 18:31:32 +01:00
Stephan
fdc6d95388 wtf 2021-12-10 18:29:29 +01:00
Stephan
55e21143a9 wtf 2021-12-10 18:22:59 +01:00
Stephan
4e2e9638b6 wtf 2021-12-10 18:17:13 +01:00
Stephan
6a103e03a3 wtf 2021-12-10 18:13:01 +01:00
Stephan
a2e2213ce4 pii 2021-12-10 18:10:02 +01:00
Stephan
4bc423721a exp 2021-12-10 18:09:50 +01:00
Stephan
5ef1917f61 exp 2021-12-10 18:04:43 +01:00
Stephan
3b98325435 exp 2021-12-10 17:53:40 +01:00
Stephan
7688e0cbc7 exp 2021-12-10 17:48:01 +01:00
Stephan
5595250e09 exp 2021-12-10 17:42:04 +01:00
Stephan
4e8f7f271f exp 2021-12-10 17:39:59 +01:00
Stephan
f2db146379 exp 2021-12-10 17:35:15 +01:00
Stephan
11e6e12f60 exp 2021-12-10 17:32:45 +01:00
Stephan
56827f467a rename 2021-12-10 17:30:51 +01:00
Stephan
34a05d36a6 exp 2021-12-10 17:29:04 +01:00
Stephan
bb1ee93cb9 exp 2021-12-10 17:27:14 +01:00
Stephan
de64657f2c exp 2021-12-10 16:40:40 +01:00
Stephan
32e0aac7fa exp 2021-12-10 16:38:27 +01:00
Stephan
d62945518b exp 2021-12-10 16:35:57 +01:00
Stephan
a73381dafa exp 2021-12-10 16:33:36 +01:00
Stephan
3c564909d0 exp 2021-12-10 16:32:54 +01:00
Stephan
e65ddbcdfd manual action exp 2021-12-10 16:24:40 +01:00
Stephan
71f3728648 wkf exp 2021-12-09 08:53:14 +01:00
Stephan
54b0888107 wkf exp 2021-12-09 08:48:06 +01:00
Stephan
0a056599a3 wkf exp 2021-12-08 13:10:28 +01:00
Stephan
18c361ce7f github workflow experiment 2021-12-08 13:01:59 +01:00
Stephan
7240558fd8 duh 2021-12-03 11:13:42 +01:00
GitHub Actions
d76304d5ea Foo 2021-12-03 10:11:00 +00:00
Stephan
947625402d test-push 2021-12-03 11:10:44 +01:00
Stephan
6285473aa7 Update README.md 2021-10-24 17:32:09 +02:00
Stephan
0d7242e7fc A friendler README 2021-10-24 17:30:27 +02:00
Stephan
28dd92bcec Merge pull request #62 from danswiger/master
Minor change - hey, I am happy to merge your test PR, just so you can see what happens!
2021-10-24 17:21:20 +02:00
dswiger
e0fff7d62e Merge branch 'dnew' - fixed conflict manually in 'vim' 2021-10-23 12:21:34 -04:00
dswiger
5171313fd6 A non-conflicting change 2021-10-23 12:18:09 -04:00
dswiger
9d6af11683 Second commit for conflict 2021-10-23 12:17:19 -04:00
dswiger
b99b892baf First change for conflict. 2021-10-23 12:16:06 -04:00
dswiger
e3bf97c1ca adding file to branch 2021-10-23 12:09:47 -04:00
dswiger
5adc4e70a4 Minor change 2021-10-23 11:20:05 -04:00
Stephan
a01b7130b8 created symlink 2021-10-20 07:17:10 +00:00
Stephan
dbd20f76d5 again and again 2021-10-20 09:16:46 +02:00
Stephan
df0a3488d5 again 2021-10-20 09:11:33 +02:00
Stephan
5d1637699c bah 2021-10-20 09:05:22 +02:00
Stephan
767f48236c direct git link 2021-10-19 16:53:39 +02:00
Stephan
cd04389146 created symlink 2021-10-19 14:24:45 +00:00
Stephan
d48a659702 pwsh again 2021-10-19 16:24:20 +02:00
Stephan
462132dc28 created symlink 2021-10-19 14:19:17 +00:00
Stephan
e6cfcc57fe pwsh now 2021-10-19 16:17:22 +02:00
Stephan
9a7204dfca created symlink 2021-10-19 14:15:45 +00:00
Stephan
22751c3d2b pwsh 2021-10-19 16:15:13 +02:00
Stephan
a87c48b4ee created symlink 2021-10-19 14:04:42 +00:00
Stephan
64b17ac379 again 2021-10-19 16:04:11 +02:00
Stephan
5c3f366371 created symlink 2021-10-19 14:02:49 +00:00
Stephan
c4b36f3e20 again 2021-10-19 16:02:16 +02:00
Stephan
796c3370ca created symlink 2021-10-19 13:54:47 +00:00
Stephan
e9f7e6fd36 update action 2021-10-19 15:54:23 +02:00
Stephan
edcae1c219 update action 2021-10-19 15:48:52 +02:00
Stephan
bba2ce50bb duh 2021-10-19 15:44:05 +02:00
Stephan
e35659c99c test symlink 2021-10-19 15:39:43 +02:00
13 changed files with 268 additions and 8 deletions

104
.github/workflows/publish-release.yml vendored Normal file
View File

@@ -0,0 +1,104 @@
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:
# token needed to see draft releases when getting all releases
github-token: ${{ secrets.MY_GITHUB_TOKEN_TESTREPO }}
script: |
const ver = "${{ github.ref }}".substring(19)
const tag = "v" + ver
var rel = null
try {
// this does *not* return draft releases, so we have to list them
//rel = await github.repos.getReleaseByTag({ ... })
const rels = await github.repos.listReleases({
owner: context.repo.owner,
repo: context.repo.repo
})
for (const r of rels.data) {
if (r.tag_name === tag) {
rel = r
break
}
}
}
catch (error) {
core.setFailed(`Could not find a release for tag ${tag}.`)
return
}
if (rel === null) {
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
var rel = null
// no, see above
//const rel = await github.repos.getReleaseByTag({ ... })
const rels = await github.repos.listReleases({
owner: context.repo.owner,
repo: context.repo.repo
})
for (const r of rels.data) {
if (r.tag_name === tag) {
rel = r
break
}
}
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
View 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
})

82
.github/workflows/symlink-test.yml vendored Normal file
View File

@@ -0,0 +1,82 @@
name: Symlink Test
on:
# trigger on push to any branch
push:
branches-ignore:
- 'release/*'
tags-ignore:
- '*'
jobs:
# try to create and push the symlink
symlink-test:
name: Symlink Test
runs-on: windows-latest
steps:
# checkout the code
- name: Checkout code
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
# symlink via bash
# this does *not* create a symlink, but a directory
#- name: Symlink Bash
# shell: bash
# run: |
# if ! [ -L bang ]; then
# ln -s duh bang
# ls -l
# git config --global user.email "stephan@REDACTED.com"
# git config --global user.name "Stephan"
# git config --global core.symlinks "true"
# git add bang
# git commit -m "created symlink"
# fi
# symlink via pwsh
# this creates a 'bang' file that contains 'duh'
# on local machine, it fails 'New-Item: Administrator privilege required for this operation.'
#
# update: it creates *something* that is listed as a directory in the log,
# and that GitHub represents as a link, so it has to be a link, but when
# I check the thing out, it's a file
# because Windows won't create the link but on Linux, it's checked out as a link
#
#- name: Symlink Pwsh
# shell: pwsh
# run: |
# if (! (test-path bang)) {
# New-Item -ItemType SymbolicLink -Name bang -Target duh
# write-output "DIR:"
# ls .
# write-output "DIR:"
# ls bang
# git config --global user.email "stephan@REDACTED.com"
# git config --global user.name "Stephan"
# git config --global core.symlinks "true"
# git add bang
# git commit -m "created symlink"
# }
# see
# this just creates the symlink in Git - works on Windows
# BUT will be checked out as a file and we don't care
- name: Symlink Git
shell: bash
run: |
if ! [ -f "bang" ]; then
git update-index --add --cacheinfo 120000 "$(echo "duh" | git hash-object -w --stdin)" "bang"
git config --global user.email "stephan@REDACTED.com"
git config --global user.name "Stephan"
git commit -m "created symlink"
fi
# push changes back
- name: Push
shell: bash
run: git push

25
.github/workflows/test-push.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Test Push
on: push
jobs:
foo:
name: Foo
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{github.ref}}
- name: Foo
shell: bash
run: |
echo "foo" >> foo.txt
- name: Push
shell: bash
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "github-actions@hazelcast.com"
git add foo.txt
git commit -m "Foo"
git push

View File

@@ -1,19 +1,30 @@
# test-repo
# A Git(Hub) Test Repository
A Git(Hub) Test Repository
Hey! This is my personal Git(Hub) Test Repository where I experiment with Git and GitHub.
`git clone https://github.com/zpqrtbnk/test-repo.git .`
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:
We have pages at: http://zpqrtbnk.github.io/test-repo/
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.
We have an image in the README
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)
![Image](https://raw.github.com/zpqrtbnk/test-repo/master/wtf.jpg)
etc
etc
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>

1
bang Symbolic link
View File

@@ -0,0 +1 @@
duh

3
dan.txt Normal file
View File

@@ -0,0 +1,3 @@
this is a new file only in my branch
changing something that won't conflict in master

1
duh.txt Normal file
View File

@@ -0,0 +1 @@
duh

1
duh/bah.txt Normal file
View File

@@ -0,0 +1 @@
bah

1
duh/duh.txt Normal file
View File

@@ -0,0 +1 @@
duh

2
e.txt
View File

@@ -1 +1,3 @@
e
MiNor Change

2
foo.txt Normal file
View File

@@ -0,0 +1,2 @@
foo
foo

1
pii.txt Normal file
View File

@@ -0,0 +1 @@
pii