Skip to content

Commit

Permalink
Added moer Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zds-s committed Mar 12, 2024
1 parent b99b9a2 commit f378ecc
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Release

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
27 changes: 27 additions & 0 deletions .github/workflows/transfer-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Issue Migration

on:
issues:
types: [opened]

jobs:
migrate_issue:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issue = context.payload.issue;
const newIssue = await github.rest.issues.create({
owner: issue.owner,
repo: issue.repo,
title: issue.title,
body: issue.body,
labels: issue.labels,
assignees: issue.assignees
});
console.log(`Created issue ${newIssue.data.number} in ${newIssue.data.repository.full_name}`);
- uses: actions/delete-issue@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f378ecc

Please sign in to comment.