Browse Source

fix failing github actions

pull/227/head v1.3.0
butlerx 5 years ago
parent
commit
41ffcaf316
No known key found for this signature in database GPG Key ID: B37CA765BAA89170
  1. 2
      .github/workflows/publish.yml
  2. 16
      .github/workflows/rebase.yml

2
.github/workflows/publish.yml

@ -27,4 +27,4 @@ jobs:
uses: mikeal/merge-release@master uses: mikeal/merge-release@master
env: env:
GITHUB_TOKEN: ${{ secrets.node_github_token }} GITHUB_TOKEN: ${{ secrets.node_github_token }}
NODE_AUTH_TOKEN: ${{ secrets.npm_token }} NPM_AUTH_TOKEN: ${{ secrets.npm_token }}

16
.github/workflows/rebase.yml

@ -2,15 +2,25 @@
name: Automatic Rebase name: Automatic Rebase
on: on:
issue_comment: issue_comment:
types: [created] types:
- created
jobs: jobs:
rebase: rebase:
name: Rebase name: Rebase
if: contains(github.event.comment.body, '/rebase') if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
with:
fetch-depth: 0
- name: Automatic Rebase - name: Automatic Rebase
uses: cirrus-actions/rebase@master uses: cirrus-actions/rebase@1.2
env: env:
GITHUB_TOKEN: ${{ secrets.node_github_token }} GITHUB_TOKEN: ${{ secrets.node_github_token }}
# https://github.community/t5/GitHub-Actions/Workflow-is-failing-if-no-job-can-be-ran-due-to-condition/m-p/38186#M3250
always_job:
name: Always run job
runs-on: ubuntu-latest
steps:
- name: Always run
run: echo "This job is used to prevent the workflow to fail when all other jobs are skipped."

Loading…
Cancel
Save