github-actions-self-hosted-runners 相关问题


无法在timescaleDb中创建超表

我按照本教程的设置使用 Docker 安装了 timescaleDb:https://docs.timescale.com/self-hosted/latest/install/installation-docker/ 。我使用了这个图像:timescale/timescaledb-ha...


自托管的 GitHub Actions Runner 可以在托管 GitHub Runner 的同一台计算机上部署应用程序吗?

我目前正在尝试使用在 Ubuntu VM 上运行的自托管 GitHub Actions Runner 来配置启用了 GitHub Actions 的 GitHub 存储库。 我想将我的应用程序部署到...


我想在javascript中使用microsoft office api,因为我正在开发chrome扩展,并且在使用office脚本时遇到问题

拒绝加载脚本“https://appsforoffice.microsoft.com/lib/1/hosted/office.js”,因为它违反了以下内容安全策略指令:“script-src 'self' 'wasm-unsafe -伊娃...


GitHub Actions:如何通过 API 访问当前构建的作业日志?

我想通过nodejs后端从Github Actions获取当前工作流程的作业日志。我知道 Github 提供了一个 API,可以访问有关工作流程的信息,如下所示: 获取/repos/{拥有...


如何在 cypress-io/github-actions 测试期间更改 baseURL

我正在尝试使用 Github Actions 运行我的 Cypress 测试。我已完成所有设置,但我遇到了在 GitubActions 过程中设置然后传递给 Cypress 的 baseURL 变量的问题。在我的


使用 Github Actions 恢复 Azure DevOps 中托管的私有 Nuget 包失败

我有一个 .NET 项目,它使用托管在 Azure DevOps 中的私有 Nuget 包。我有一个 Github Actions 工作流程,它使用个人访问令牌注册私人提要,并恢复


GitHub Actions:JIB maven 插件中出现错误 401 未经授权

简介 我目前正在创建一个复合 GitHub Actions,它使用 JIB 从 Java 项目构建一个容器,并将其自动发布到 GitHub Packages 和 Maven Central。 有问题的 乙...


在 Github Actions 上配置工作流程摘要

我想为我的 Github Action 工作流程配置自定义摘要,类似于 RollingVersions 的做法。在查看了文档并搜索了互联网之后,这似乎并不是那么......


Powershell:Github Actions 与 Gitub Codespace 的不同行为(找不到类型:验证包含此类型的程序集是否已加载)

我需要在 Github Actions 工作流程中构建和使用这个 NET8 crypto.dll 类库。但看在上帝的份上,我无法让它与 Powershell(核心)一起工作。 运行程序在 Ubuntu VM 上运行...


如何使用 GitHub Actions 工作流程调用 PowerShell 脚本?

我正在调用 uild.ps1,它似乎挂起: https://github.com/nblockchain/ZXing.Net.Xamarin/runs/232358091 我需要一些特别的东西吗?在 AzureDevOps 中,这是开箱即用的。


使用(首选)直接工作负载身份联合部署 GCP App Engine 和 GitHub Actions

我有一个应用程序,已使用 gcloud 应用程序部署从本地工作站成功部署。 我现在正在尝试设置 GitHub Action 以在推送时执行此操作。 参考资料是什么...


秘密在 GitHub Actions 工作流程中不可用

我在存储库设置下添加了秘密变量。这是我的目标: 从秘密中读取变量 注入环境以便应用程序可以读取它。 问题: 秘密效果很好...


AWS Lambda 层大小超出连续构建时的问题

我正在使用无服务器框架将代码部署到 AWS Lambda。我正在将 GitHub Actions 用于我的 CI/CD 管道。我还使用 Lambda Layers 来存储我的依赖项。管道成功...


拉取合并之前的单元测试无法连接到数据库

我已经设置了一个 GitHub Actions 工作流程,在将功能分支合并到 Laravel 应用程序的主分支之前运行 名称:合并前测试 在: 拉请求: 分支:[主要] 工作: 你...


当随后发生多个提交并被取消时,待处理的 GitHub Actions 作业会如何表现?

目前我们的工作流程是在推送部署时触发的: 并发:产品 在: 推: 工作: 测试部署: 环境:产品 测试部署作业需要手动批准并且......


重用 GitHub Actions 中可重用工作流程存储库中的机密

在我们的项目上下文中,我们需要使用包含可重用工作流程的存储库中的秘密,而不是调用者,因为我们不与调用者(我们的客户)共享它。 用例看起来...


为什么 Iterator<Item = T> 和 Iterator<Item = &T> 的实现会发生冲突?

此代码无法编译: 酒吧特质 ToVec { fn to_vec(self) -> Vec; } 为 I 实现 ToVec 在哪里 我:迭代器, { fn to_vec(self) ...


Angular Material 2:修复多行错误消息

我在我的角度应用程序中使用角度材料2。当我的表单输入字段错误消息超过一行时,我遇到了问题。这是照片: 这是代码: 我在我的角度应用程序中使用角度材料 2。当我的表单输入字段错误消息超过一行时,我遇到了问题。这是照片: 这是代码: <md-error *ngIf="password.touched && password.invalid"> <span *ngIf="password.errors.required"> {{'PASSWORD_RECOVERY.FIELD_REQUIRED' | translate}} </span> <span *ngIf="password.errors.minlength || password.errors.maxlength"> {{'PASSWORD_RECOVERY.PASSWORD_LENGTH' | translate}} </span> <span *ngIf="password.errors.pattern"> {{'PASSWORD_RECOVERY.FOR_A_SECURE_PASSWORD' | translate}} </span> </md-error> 我通过阅读 github 了解到,这是 Angular 2 材料中的一个错误。有人通过自定义解决方法成功解决了这个问题吗? 问题是类为 .mat-form-field-subscript-wrapper 的元素是 position: absolute,所以它不占用实际空间。 按照 xumepadismal 在 github 上关于此问题的建议,您可以添加此 scss 作为解决我的问题的解决方法: // Workaround for https://github.com/angular/material2/issues/4580. mat-form-field .mat-form-field { &-underline { position: relative; bottom: auto; } &-subscript-wrapper { position: static; } } 它会转换静态 div 中的 .mat-form-field-subscript-wrapper 节点,并将 .mat-form-field-unterline 重新定位在输入字段之后。 正如材料 15 中在 github 讨论中提到的,可以通过将 subscriptSizing="dynamic" 添加到 mat-form-field 来解决问题。 要更改默认行为,您必须使用以下选项更新 angular.module.ts 提供程序: providers: [ { provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { subscriptSizing: 'dynamic' } } ] 这也可以在材料文档中找到 使用@mattia.corci提出的解决方案会导致错误消息被推到底部太多,从而在顶部留下不必要的空白空间。 使用 Tailwind CSS,这个解决方案对我来说适用于最新的 Angular 17: .mat-mdc-form-field { @apply w-full self-start; .mat-mdc-form-field-subscript-wrapper { @apply flex; .mat-mdc-form-field-error-wrapper { @apply static; } } } mat-form-field.ng-invalid.ng-touched { animation: example; animation-duration: 0.3s; margin-bottom: 20px; } @keyframes example { from { margin-bottom: 0; } to { margin-bottom: 20px; } } 它对我有用。


如何将 '<p class="p1">' 、 '<div class="disp-quote-p">/following-sibling::*[1][self::p[@class='p1']]' 包装/分组在单个 'p' 元素中

我正在包装节点 ' 、 '' 和 div[@class='disp-quote-p']/following-sibling::*[1][self::p[@class=' p1']] 里面... 我正在尝试将节点 <p class="p1">' , '<div class="disp-quote-p">' and div[@class='disp-quote-p']/following-sibling::*[1][self::p[@class='p1']] 包裹在单个 p 元素中。 输入 XML:- <root> <p class="p">aa</p> <p class="p1">Although:</p> <div class="disp-quote-p"> <p class="p">We had seen.</p> </div> <p class="p1">This dot.</p> <img src="a.png"/> <box>box</box> <p class="p">bb</p> </root> 我正在尝试将节点包装在单个 p 元素中的代码,但此节点 <p class="p1">This dot.</p> 与 <div class="disp-quote-p"> 节点一起包装。 <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <xsl:template match="root"> <xsl:copy> <xsl:for-each-group select="*" group-starting-with="p[@class='p1']"> <xsl:for-each-group select="current-group()" group-adjacent="self::p[@class='p1'] or self::div[@class='disp-quote-p']"> <xsl:choose> <xsl:when test="self::p[@class='p1']"> <p><xsl:apply-templates select="node(), current-group() except ."/></p> </xsl:when> <xsl:otherwise> <xsl:copy-of select="current-group()"/> </xsl:otherwise> </xsl:choose> </xsl:for-each-group> </xsl:for-each-group> </xsl:copy> </xsl:template> 网址链接:[http://xsltransform.net/eiov64R/1] 预期输出:- <root> <p class="p">aa</p> <p>Although:<disp-quote><p class="p">We had seen.</p></disp-quote>This dot.</p> <img src="a.png"/> <box>box</box> <p class="p">bb</p> </root> 试试这个: <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <xsl:template match="root"> <xsl:copy> <xsl:for-each-group select="*" group-adjacent="if(self::p[@class='p1'] or self::div) then -1 else position()"> <xsl:choose> <xsl:when test="self::p[@class='p1'] or self::div"> <p><xsl:apply-templates select="current-group()"/></p> </xsl:when> <xsl:otherwise> <xsl:copy-of select="current-group()"/> </xsl:otherwise> </xsl:choose> </xsl:for-each-group> </xsl:copy> </xsl:template> <xsl:template match="p[@class='p1']"> <xsl:apply-templates/> </xsl:template> <xsl:template match="div[@class='disp-quote-p']"> <xsl:element name="disp-quote"> <xsl:apply-templates/> </xsl:element> </xsl:template>


Python 程序中将罗马数字转换为整数时出错

def romanToInt(self, s: str) -> int: 数量 = 0 lst = ["I","V","X","L","C","D","M"] dict = {“我&quo...


如何修复连接到 cloudsql 时的 KeyError?

我正在尝试使用 google.cloud.sql.connector 连接到 cloudsql 服务器,以下代码取自文档: def connect_with_connector(self) -> sqlalchemy.engine.base.Engine: “……


如何取消查看/切换 GitHub Pull Request 上所有已查看的文件?

我知道我可以手动转到 PR 并取消选中“已查看”。是否有取消选中 PR 中所有文件的快捷方式? 在GitHub上发现了一些相关问题 https://github.com/refined-github/refined-github/issues/


Python---TypeError:Battery.get_range() 缺少 1 个必需的位置参数:'self'

主程序- """可以用来代表汽车的类。""" 车类: “”“代表一辆汽车的简单尝试。”“” def __init__...


Python:黑色不会包裹长线

我使用的是黑色==20.8b1。 我有一个长字符串,例如: 返回 f"{self.name},一个为 {target.get_relationship_target_string()} 工作的 {adjective.to_name()} {kin_string}{self._type.to_name()}。&


github graphQL API - 如何检索问题的项目项?

我是 github graphQL API 的新手,我一直在使用 github Entreprise Cloud 寻找以下问题的解决方案: 我有一个存储库“myRepo”,其中包含一个问题“myIssue...


为 pytest 模拟外部 api 客户端类

我想模拟客户端类到外部api: 类ExternalApiClient: def __init__(self, 请求: HttpRequest): 会话= getattr(请求,“会话”,无) 自我汽车 =


Django-channels 实例关闭时间过长而被杀死

谁能告诉我可能是什么问题? 警告应用程序实例 谁能告诉我可能是什么问题? 警告应用程序实例 wait_for=> 连接 关闭时间过长并被终止。 我的阿斯吉 "^subscription", channels_jwt_middleware(MyConsumer.as_asgi(schema=schema)) ) application = ProtocolTypeRouter({ "http": django_asgi_app, "websocket": QueryAuthMiddleware( URLRouter([ subscription_url, ]) ), })``` my custom MyConsumer ```class MyConsumer(GraphQLWSConsumer): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.profile_id = None async def __call__(self, scope, receive, send): user = scope.get("user", None) time_zone = await get_current_timezone(user) self.profile_id = scope.get("active_profile_id", None) self.timezone = time_zone if time_zone else settings.TIME_ZONE await super().__call__(scope, receive, send) async def connect(self): await super().connect() await change_status(True, self.profile_id) async def disconnect(self, close_code, *args, **kwargs): await super().disconnect(close_code) await change_status(False, self.profile_id)``` 解决我的问题 daphne -b 0.0.0.0 -p $SERVER_PORT --application-close-timeout 60 --proxy-headers server.asgi:application


proxmox 的 github 操作出现 Terraform 计划错误

我尝试使用 Proxmox 进行 Terraform,效果很好。尝试通过自托管 github runner 来学习和利用 GitHub 操作功能 名称:LCX_2 在: 工作流程_调度: 环境: PM_API_URL:${{


如何将 SonarCloud 与 GitHub 和 Jenkins 集成

我刚刚完成了 GitHub 与 Jenkins 的集成,这样每次我将代码提交到 GitHub 存储库时,Jenkins 都会自动构建。 现在我也在尝试集成 SonarCloud,但我还没有...


如何配置GitHub默认问题过滤器参数?

搜索 GitHub 问题时,将应用默认搜索过滤器(is:pr is:open)。请参阅 GitHub 的此和此文档页面。 我如何为此搜索配置替代默认过滤器...


如何使用 GitHub Copilot 处理多个文件?

我正在寻找探索 GitHub Copilot。我没有深入的编码经验,而且我几个月前才毕业。我本来打算建立一个小网站来探索 GitHub copilot 的功能...


PyQt:QTableWidget 到 .xls 文件

所以,我有一个 QTableWidget,我想使用 xlwt 模块将其保存到 .xls 文件中... 这是代码: def 保存文件(自身): 文件名 = unicode(QtGui.QFileDialog.getSaveFileName(self, '...


Jupyter 回溯(最近一次调用最后一次)

回溯(最近一次调用最后一次): 文件“C:\用户 ohzr naconda3\Lib\site-packages otebook Raittypes.py”,第 235 行,在 _resolve_classes 中 klass = self._resolve_string(klass) ^^^^^^^^^^^^^...


pyarrow 飞行错误:无法在关闭前完成写入

我有以下代码,用于使用 pyarrow 飞行在 Dremio 中执行查询: DremioConnector 类: 环境:str auth_token:str def __init__(self, env: str, auth_token: str): ...


带有对象 ID 的特殊 Python 字典

我想创建一个特殊的字典,使用对象 ID 作为键,如下所示: 类 ObjectIdDict(dict): def __setitem__(自身,键,值): super(ObjectIdDict, self).__setitem__(id(k...


使用 Python 数据类从超类继承方法

我有几个数据类,我想修改比较方法。我实现了这个类: @数据类 类ComparisonMixin: def __eq__(self, __o: 对象) -> bool: 结果...


您可以根据每个项目选择 GitHub Copilot 吗?

我正在使用 VS Code GitHub Copilot 扩展。有时我会编辑包含机密的文件,并且我不想意外地将这些文件发送到 Microsoft/GitHub。 是否可以让 Copilot 选择加入,所以


GitHub Packages:无效的发布“release”:具有相同扩展名和分类器的多个工件(“aar”、“null”)

我一直在尝试通过 GitHub Packages 发布该库,为此我正在关注这篇 Medium 文章:将 Android 库发布到 GitHub Packages 这是我的 build.gradle 文件: 导入...


如何在 React 中使用 github api 来显示 github 用户信息?

我开始制作一个 React 应用程序,它可以通过用户名搜索 github 用户,其中的组件显示用户名、个人资料头像、关注者数量、用户正在关注的人以及


如何关闭 GitHub“合格域名”电子邮件警告横幅?

我最近被授予访问 GitHub 上另一个组织的私人存储库和秘密团队的权限。 现在,下面这个烦人的横幅出现在大多数 GitHub 页面的顶部。我想不通啊...


Python程序中将罗马数字转换为整数时出错(我找到了解决方案,但显然我现在无法删除它)

def romanToInt(self, s: str) -> int: 数量 = 0 lst = ["I","V","X","L","C","D","M"] dict = {“我&quo...


QWebEngineView:html 文件中的 href 不起作用

我有一个 test.html 文件,例如: 我有一个 test.html 文件,例如: <!DOCTYPE html> <html> <head> </head> <body> <a style="padding-right:5px" target="_blank" href="data/">Datadir</a> </body> </html> 包含 test.html 的目录如下: test.html data\ a.txt b.txt 我使用“file:///remote/us01home19/ktc/public_html/testLocalHref/test.html”并在firefox和chrome中单击Datadir,结果如下: 和: 我写了一个pyside2代码来做同样的事情,代码如下: from PySide2 import QtCore, QtWidgets, QtWebEngineWidgets import os import sys class CustomWebEnginePage(QtWebEngineWidgets.QWebEnginePage): # Store second window. external_window = None def acceptNavigationRequest(self, url, _type, isMainFrame): print(url, _type, isMainFrame) if _type == QtWebEngineWidgets.QWebEnginePage.NavigationTypeLinkClicked: if not self.external_window: self.external_window = QtWebEngineWidgets.QWebEngineView() self.external_window.setUrl(url) self.external_window.show() return False return super().acceptNavigationRequest(url, _type, isMainFrame) class MainWindow(QtWidgets.QMainWindow): def __init__(self, *args, **kwargs): super(MainWindow, self).__init__(*args, **kwargs) self.browser = QtWebEngineWidgets.QWebEngineView() self.browser.setPage(CustomWebEnginePage(self)) # self.browser.setUrl(QtCore.QUrl("https://code.visualstudio.com")) self.browser.setUrl(QtCore.QUrl("file:///remote/us01home19/ktc/public_html/testLocalHref/test.html")) # self.browser.setUrl(QtCore.QUrl("file:///remote/tw_rnd1/ktc/prog/python/pyside2/WebEngine/data/aaa.ava.summary.html")) #self.browser.setUrl(QtCore.QUrl("file:///remote/tw_rnd1/ktc/prog/python/pyside2/WebEngine/data/aaa_ava_corners/C_1")) self.setCentralWidget(self.browser) if __name__ == '__main__': app = QtWidgets.QApplication(sys.argv) window = MainWindow() window.show() sys.exit(app.exec_()) 但是执行代码,我得到的结果如下: 但是点击Datadir,没有任何反应,甚至QWebEnginePage.acceptNavigationRequest也没有触发。有没有办法让 QWebEngine 的行为像 Firefox 和 Chrome 一样? 我尝试在 QWebEnginePage.acceptNavigationRequest 函数中添加打印消息来捕获点击 dataDir 信息,但似乎没有任何响应。 python版本:python-3.9.0, 操作系统版本:“CentOS Linux 7”, Qt 版本:“Qt_5.15” python 和 Qt 是自定义构建 我发现问题来自htmltarget =“_blank”在QWebEnginePage中不起作用,它可以通过在QtWebEngineWidgets中实现类函数createWindow来避免,例如: class CustomWebEnginePage(QtWebEngineWidgets.QWebEnginePage): # Store second window. external_window = None def acceptNavigationRequest(self, url, _type, isMainFrame): print(url, _type, isMainFrame) if _type == QtWebEngineWidgets.QWebEnginePage.NavigationTypeLinkClicked: if not self.external_window: self.external_window = QtWebEngineWidgets.QWebEngineView() self.external_window.setUrl(url) self.external_window.show() return False return super().acceptNavigationRequest(url, _type, isMainFrame) def createWindow(self, t): return self;enter code here


“普通”Python 类和 Pydantic 类之间有什么区别?

我想知道在 python 中正常构建的类和使用 Pydantic lib 构建的类之间的区别,例如: 例如,正常; 类节点: def __init__(self, chave=None, esq...


ValueError:展开时出现包装循环

Python3 测试用例(文档测试)在我的示例代码中失败。但在 Python2 中同样可以正常工作。 测试.py: 类测试(对象): def __init__(self, a=0): self.a = a def __getat...


如何将本地文件上传到客户端创建的空GitHub存储库

我的客户为我提供了一个空的 GitHub 存储库,我需要将本地文件上传到此存储库,问题是我在 GitHub 页面中没有看到“克隆”选项,是因为存储库.. .


修复 Flutter GitHub 项目导入错误:Dart SDK 版本和空安全兼容性

从github导入flutter中的任何项目时,它显示“sdk:'> = 2.7.0的下限<3.0.0'" must be 2.12.0' or higher to enable null safety. The current Dart SDK (3.2.3)...


Github Codespaces - 端口转发问题

Github Codespaces(VSCode 网页版)返回错误 [错误消息:无法转发 localhost - 网络错误] - 网络错误 - 已附加屏幕截图 - 既不自动转发也不手动转发...


如何处理FastAPI中所有子应用的异常

我有一个包含多个子应用程序的FastAPI项目(该示例仅包含一个子应用程序)。 main_app = FastAPI() 类自定义异常(异常): def __init__(self, 消息: str, status_c...


如何让 Digital Crown 恢复与 watchOS 4 配合使用

我有一个手表套件应用程序,可以通过设置来使用数字表冠 CrownSequencer.delegate = self CrownSequencer.focus() 在我的界面控制器的唤醒方法中,它正在实现: c...


如何批量删除已合并的拉取请求的 Github 通知?

我正在查看我的 Github 通知 (https://github.com/notifications),并且有大量与已合并的拉取请求相关的未读通知。 我希望能够


© www.soinside.com 2019 - 2024. All rights reserved.