10 Commits

Author SHA1 Message Date
GitHub Actions
da67fad037 Foo 2021-12-10 15:36:27 +00:00
Stephan
528d1e9ef8 poo 2021-12-10 16:36:07 +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
4 changed files with 48 additions and 0 deletions

20
.github/workflows/manual-thingy.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Manually Do Something
on: workflow_dispatch
jobs:
job:
runs-on: ubuntu-latest
#if: startsWith(github.ref, 'release/')
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Do Something
run: |
version="${${{ github.ref }}:8}" # trim starting 'release/' (8 chars)
echo "ref=${{ github.ref }}"
echo "version=$version"
#git tag v$version
#git config user.email "github-actions@zpqrtbnk.net"
#git config user.name "GitHub Actions (Do Something)"
#git push --tags

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
})

View File

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

1
poo.txt Normal file
View File

@@ -0,0 +1 @@
poo