12 Commits

Author SHA1 Message Date
GitHub Actions
73aaf9a437 Foo 2021-12-10 15:41:14 +00:00
Stephan
dd62ea5560 pii 2021-12-10 16:40:54 +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
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, 'refs/heads/release/')
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Do Something
run: |
version="${{ github.ref }}"
version="${version:19}" # trim starting 'refs/heads/release/' (19 chars)
echo "Tag ref ${{ github.ref }} as v$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
pii.txt Normal file
View File

@@ -0,0 +1 @@
pii