github-actions

Install private github package from package.json on Github Actions

拜拜、爱过 提交于 2021-01-24 05:47:07
问题 I'm trying to implement Github actions as a CI on my project. The problem is that I'm using private git URL on my package.json but CI gets an error because Github actions "somehow" doesn't have access to that repo which it's impossible because it's on the same user account. Does anyone have any idea how to figure this out? main.workflow file: workflow "Github Actions" { on = "pull_request" resolves = ["Danger JS"] } action "Build" { <-------- This gets error uses = "actions/npm@master" args =

Install private github package from package.json on Github Actions

旧时模样 提交于 2021-01-24 05:42:05
问题 I'm trying to implement Github actions as a CI on my project. The problem is that I'm using private git URL on my package.json but CI gets an error because Github actions "somehow" doesn't have access to that repo which it's impossible because it's on the same user account. Does anyone have any idea how to figure this out? main.workflow file: workflow "Github Actions" { on = "pull_request" resolves = ["Danger JS"] } action "Build" { <-------- This gets error uses = "actions/npm@master" args =

Clear cache in GitHub Actions

﹥>﹥吖頭↗ 提交于 2021-01-21 07:17:33
问题 I am working on an R package and using GitHub Action (GHA) as a Continuous Integration (CI) provider. I cache R packages (dependencies) by using actions/cache. And now I want to clear all cache. How can I do that? A part of GHA Workflow I use: on: push name: R-CMD-check jobs: R-CMD-check: runs-on: ${{ matrix.config.os }} name: ${{ matrix.config.os }} (${{ matrix.config.r }}) strategy: fail-fast: false matrix: config: # - {os: windows-latest, r: 'devel'} - {os: macOS-latest, r: 'release'} env:

Access a container by hostname in github actions from within an action

百般思念 提交于 2021-01-07 06:57:25
问题 I start a docker container within my github action and try to access it from an action. But the action is not able to resolve the hostname. How do add my container to the same docker network as the action and let the action access it by its hostname? steps: - name: Run Fuseki run: docker run -p 3030:3030 --name fuseki -d stain/jena-fuseki /jena-fuseki/fuseki-server --file=/staging/aksw.org.nt /aksw - name: curl uses: wei/curl@master with: args: https://fuseki:3030/aksw The complete file is

How do I automerge dependabot updates (config version 2)?

六月ゝ 毕业季﹏ 提交于 2021-01-05 06:17:00
问题 Following "Dependabot is moving natively into GitHub!", I had to update my dependabot config files to use version 2 format. My .dependabot/config.yaml did look like: version: 1 update_configs: - package_manager: "python" directory: "/" update_schedule: "live" automerged_updates: - match: dependency_type: "all" update_type: "all" I've got the following working: version: 2 updates: - package-ecosystem: pip directory: "/" schedule: interval: daily but I can't seem to add the automerge option

How do I automerge dependabot updates (config version 2)?

那年仲夏 提交于 2021-01-05 06:11:46
问题 Following "Dependabot is moving natively into GitHub!", I had to update my dependabot config files to use version 2 format. My .dependabot/config.yaml did look like: version: 1 update_configs: - package_manager: "python" directory: "/" update_schedule: "live" automerged_updates: - match: dependency_type: "all" update_type: "all" I've got the following working: version: 2 updates: - package-ecosystem: pip directory: "/" schedule: interval: daily but I can't seem to add the automerge option

Run Github Actions when pull requests have a specific label

懵懂的女人 提交于 2021-01-02 15:32:23
问题 After reading the documentation of the Events that trigger workflows, I wonder if it's possible to run a workflow with a given label name , like RFR or WIP. I know we can run a workflow when the pull request is labeled, but there is nothing more for a specifc label name : on: pull_request: types: [labeled] Has anyone done this before ? 回答1: You can achieve running a workflow on labeling a Pull Request using a conditional expression like if: ${{ github.event.label.name == 'label_name' }} So if

Run Github Actions when pull requests have a specific label

天涯浪子 提交于 2021-01-02 15:30:32
问题 After reading the documentation of the Events that trigger workflows, I wonder if it's possible to run a workflow with a given label name , like RFR or WIP. I know we can run a workflow when the pull request is labeled, but there is nothing more for a specifc label name : on: pull_request: types: [labeled] Has anyone done this before ? 回答1: You can achieve running a workflow on labeling a Pull Request using a conditional expression like if: ${{ github.event.label.name == 'label_name' }} So if

Run Github Actions when pull requests have a specific label

对着背影说爱祢 提交于 2021-01-02 15:27:37
问题 After reading the documentation of the Events that trigger workflows, I wonder if it's possible to run a workflow with a given label name , like RFR or WIP. I know we can run a workflow when the pull request is labeled, but there is nothing more for a specifc label name : on: pull_request: types: [labeled] Has anyone done this before ? 回答1: You can achieve running a workflow on labeling a Pull Request using a conditional expression like if: ${{ github.event.label.name == 'label_name' }} So if

Run Github Actions when pull requests have a specific label

 ̄綄美尐妖づ 提交于 2021-01-02 15:27:12
问题 After reading the documentation of the Events that trigger workflows, I wonder if it's possible to run a workflow with a given label name , like RFR or WIP. I know we can run a workflow when the pull request is labeled, but there is nothing more for a specifc label name : on: pull_request: types: [labeled] Has anyone done this before ? 回答1: You can achieve running a workflow on labeling a Pull Request using a conditional expression like if: ${{ github.event.label.name == 'label_name' }} So if