Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85003adc6b | ||
|
|
d61705886d | ||
|
|
32e0aac7fa | ||
|
|
d62945518b | ||
|
|
a73381dafa | ||
|
|
3c564909d0 | ||
|
|
e65ddbcdfd | ||
|
|
71f3728648 | ||
|
|
54b0888107 | ||
|
|
0a056599a3 | ||
|
|
18c361ce7f |
19
.github/workflows/manual-thingy.yml
vendored
Normal file
19
.github/workflows/manual-thingy.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
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 }}: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
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
|
||||||
|
})
|
||||||
|
|
||||||
Reference in New Issue
Block a user