From 18c361ce7f73698030e19966813e56f2899560e2 Mon Sep 17 00:00:00 2001 From: Stephan Date: Wed, 8 Dec 2021 13:01:59 +0100 Subject: [PATCH] github workflow experiment --- .github/workflows/rest-description.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/rest-description.yml diff --git a/.github/workflows/rest-description.yml b/.github/workflows/rest-description.yml new file mode 100644 index 0000000..fa040a7 --- /dev/null +++ b/.github/workflows/rest-description.yml @@ -0,0 +1,21 @@ +name: Toy with issue description +on: + issues: + types: labeled + +jobs: + toy-desc: + runs-on: ubuntu-latest + steps: + - name: Toy with issue description + uses: actions/github-script@v4.0.2 + with: + script: | + const title = `${{ github.event.issue.title }} !` + github.issues.update({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + title: title + }) + \ No newline at end of file