github-actions

Share artifacts between workflows / Github Actions

女生的网名这么多〃 提交于 2020-12-26 06:42:01
问题 I know that you can share artifacts between jobs of the same workflow... But how can I share artifacts across different workflows? 回答1: Probably not yet doable: After a workflow ends, you can download an archive of the uploaded artifacts on GitHub by finding the workflow run in the Actions tab. GitHub does not currently offer a REST API to retrieve uploaded artifacts. If you need to access artifacts from a previously run workflow, you'll need to store the artifacts somewhere. For example, you

Github Actions: xcodebuild fails due to server fingerprint

人走茶凉 提交于 2020-12-26 06:33:52
问题 I am trying to build a macOS app with Github Actions. This already worked very well, until I migrated my dependencies to Swift Package Manager. Now I am getting the following error while building my app: xcodebuild: error: Could not resolve package dependencies: The server SSH fingerprint failed to verify. I have a private GitHub repository as a dependeny in my application added as a Swift Package using a ssh location. Therefore I need to add my ssh key for the dependency in the Set up ssh

Github Actions: xcodebuild fails due to server fingerprint

不羁岁月 提交于 2020-12-26 06:28:01
问题 I am trying to build a macOS app with Github Actions. This already worked very well, until I migrated my dependencies to Swift Package Manager. Now I am getting the following error while building my app: xcodebuild: error: Could not resolve package dependencies: The server SSH fingerprint failed to verify. I have a private GitHub repository as a dependeny in my application added as a Swift Package using a ssh location. Therefore I need to add my ssh key for the dependency in the Set up ssh

GitHub Actions: how to build a pull request as if it were merged?

℡╲_俬逩灬. 提交于 2020-12-25 08:47:11
问题 I'm very excited about GitHub Actions. I use Travis-CI and AppVeyor now, which have "PR" (pull request) builds that build the code as if the pull request were merged. I would like to use GitHub Actions for continuous integration, but it seems GitHub Actions only supports building pushed commits, not the result of the merge. How do I achieve the effect I want? 回答1: According to https://github.com/actions/checkout/issues/15#issuecomment-524093065 and https://github.com/actions/checkout/issues

upload artifact in GitHub Action

陌路散爱 提交于 2020-12-15 08:37:07
问题 How do I update the following code so that artifact contains a folder named 'Scripts' and all the files are copied to 'Scripts' folder? - name: copy scripts run: Copy 'Scripts/' '${{ github.workspace }}/Scripts' shell: powershell - name: publish artifact uses: actions/upload-artifact@v2 with: path: ${{ github.workspace }}/Scripts name: ${{ github.run_number }} 回答1: You can use this: - name: Create Artifact Folder run: New-Item -Path '${{ github.workspace }}' -Name "Artifacts" -ItemType

upload artifact in GitHub Action

∥☆過路亽.° 提交于 2020-12-15 08:34:20
问题 How do I update the following code so that artifact contains a folder named 'Scripts' and all the files are copied to 'Scripts' folder? - name: copy scripts run: Copy 'Scripts/' '${{ github.workspace }}/Scripts' shell: powershell - name: publish artifact uses: actions/upload-artifact@v2 with: path: ${{ github.workspace }}/Scripts name: ${{ github.run_number }} 回答1: You can use this: - name: Create Artifact Folder run: New-Item -Path '${{ github.workspace }}' -Name "Artifacts" -ItemType

How to trigger Github Workflow after a check suite finishes?

こ雲淡風輕ζ 提交于 2020-12-13 18:07:59
问题 I want to trigger a workflow only if a particular workflow finishes... does anyone know how to do that? Some context: I have a workflow Tests and another called Build-feature . I run my Tests workflow on every PR to branch feature . If something is pushed/merged to branch feature then i want to run workflow Tests and only if that succeeds then i want to run Build-feature workflow. Also there's the event check_suite that it's supposed to trigger a workflow: https://help.github.com/en/actions

How to trigger Github Workflow after a check suite finishes?

为君一笑 提交于 2020-12-13 18:06:48
问题 I want to trigger a workflow only if a particular workflow finishes... does anyone know how to do that? Some context: I have a workflow Tests and another called Build-feature . I run my Tests workflow on every PR to branch feature . If something is pushed/merged to branch feature then i want to run workflow Tests and only if that succeeds then i want to run Build-feature workflow. Also there's the event check_suite that it's supposed to trigger a workflow: https://help.github.com/en/actions

How to trigger Github Workflow after a check suite finishes?

。_饼干妹妹 提交于 2020-12-13 18:05:25
问题 I want to trigger a workflow only if a particular workflow finishes... does anyone know how to do that? Some context: I have a workflow Tests and another called Build-feature . I run my Tests workflow on every PR to branch feature . If something is pushed/merged to branch feature then i want to run workflow Tests and only if that succeeds then i want to run Build-feature workflow. Also there's the event check_suite that it's supposed to trigger a workflow: https://help.github.com/en/actions

How to trigger Github Workflow after a check suite finishes?

谁说我不能喝 提交于 2020-12-13 18:04:49
问题 I want to trigger a workflow only if a particular workflow finishes... does anyone know how to do that? Some context: I have a workflow Tests and another called Build-feature . I run my Tests workflow on every PR to branch feature . If something is pushed/merged to branch feature then i want to run workflow Tests and only if that succeeds then i want to run Build-feature workflow. Also there's the event check_suite that it's supposed to trigger a workflow: https://help.github.com/en/actions