feat: add script to paste issues
This commit is contained in:
parent
d95b1fa02f
commit
52c75ab5d1
|
@ -1,26 +1,18 @@
|
|||
---
|
||||
name: New Version
|
||||
about: 请求构建指定Frida版本
|
||||
title: "[VERSION]"
|
||||
labels: version
|
||||
name: gcr.io_porter
|
||||
about: docker镜像搬运工
|
||||
title: "[PORTER]"
|
||||
labels: porter
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
标题必须为 `[VERSION]版本号` 的格式
|
||||
标题必须为 `[PORTER]镜像名:tag` 的格式,例如`[PORTER]k8s.gcr.io/federation-controller-manager-arm64:v1.3.1-beta.1`,`[PORTER]gcr.io/google-containers/federation-controller-manager-arm64:v1.3.1-beta.1`
|
||||
|
||||
issues的内容无所谓,可以为空
|
||||
|
||||
以 [https://github.com/frida/frida/tags](https://github.com/frida/frida/tags) 为准,一般类似 `15.1.19` 这样
|
||||
|
||||
可以参考 [已有请求编译版本集锦](https://github.com/anjia0532/strongR-frida-android/issues?q=is%3Aissue+label%3Aversion+)
|
||||
可以参考 [已搬运镜像集锦](https://github.com/anjia0532/gcr.io_mirror/issues?q=is%3Aissue+label%3Aporter+)
|
||||
|
||||
**注意:**
|
||||
|
||||
本项目只是提供构建,核心防frida检测都是依赖于 [Git Patch Files](https://github.com/AAAA-Project/Patchs/tree/master/strongR-frida/frida-core)
|
||||
|
||||
如果patch失败,请去[Git Patch Files](https://github.com/AAAA-Project/Patchs/tree/master/strongR-frida/frida-core) 提issues,本人无力解决这个问题。
|
||||
|
||||
已知问题,因为git的patch是基于文件的,不同版本的patch可能不能通用,意味着可能存在patch成功但是构建的frida运行不了,或者patch成功,但是构建frida失败,或者直接patch失败。
|
||||
|
||||
针对这个问题,目前尚无精力完善,可以fork后自行修改或者尝试在本地编译frida。
|
||||
本项目目前仅支持 gcr.io 镜像
|
||||
|
|
|
@ -6,19 +6,47 @@ on:
|
|||
types: [created]
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
outputs:
|
||||
GCR_IMAGE: ${{ steps.pullIssuesPorter.outputs.GCR_IMAGE }}
|
||||
ISSUE_NUMBER: ${{ steps.pullIssuesPorter.outputs.ISSUE_NUMBER }}
|
||||
steps:
|
||||
# Login against a Docker registry except on PR
|
||||
# https://github.com/docker/login-action
|
||||
- name: Log into registry ${{ env.REGISTRY }}
|
||||
- name: Log into docker hub
|
||||
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
|
||||
- name: get porter issues
|
||||
id: pullIssuesPorter
|
||||
uses: actions/github-script@v3.1.0
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const issuesResponse = await github.issues.listForRepo({
|
||||
owner: '${{ secrets.GIT_OWNER }}',
|
||||
repo: '${{ secrets.GIT_REPO }}',
|
||||
state: "open",
|
||||
labels: "porter",
|
||||
sort: "created",
|
||||
direction: "desc",
|
||||
per_page: 1
|
||||
})
|
||||
let gcr_image
|
||||
let issue_number = -1
|
||||
if (Array.isArray(issuesResponse["data"]) && issuesResponse["data"].length) {
|
||||
let title = issuesResponse["data"][0]["title"]
|
||||
let start = 0
|
||||
if (title.includes("[PORTER]")){
|
||||
start = 8
|
||||
}
|
||||
gcr_image = issuesResponse["data"][0]["title"].substring(start).trim()
|
||||
issue_number = issuesResponse["data"][0]["number"]
|
||||
}
|
||||
console.log("gcr_image from issues is ", gcr_image,", issue_number is ",issue_number)
|
||||
core.setOutput('GCR_IMAGE', gcr_image)
|
||||
core.setOutput('ISSUE_NUMBER', issue_number)
|
||||
|
|
Loading…
Reference in New Issue