diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index a0d60f3..7898b32 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -12,7 +12,7 @@ name : default on : push : - branches : [ "master" ] + branches : [ "main" ] tags : [ "v[0-9]+.[0-9]+.[0-9]+" ] pull_request : types : diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml index 8006c25..8b0d6d4 100644 --- a/.github/workflows/issue.yml +++ b/.github/workflows/issue.yml @@ -34,28 +34,28 @@ jobs : runs-on : ubuntu-latest steps : - name : default label bug - uses : "npm/.github/actions/default@master" + uses : "npm/.github/actions/default@v0.4.0" with : regex : '^(BUG)' subject : '${{ github.event.issue.title }}' input : 'issues | addLabels | context.repo | issue_number:${{ github.event.issue.number }} | labels:[ "bug" ]' token : '${{ secrets.GITHUB_TOKEN }}' - name : default label feature - uses : "npm/.github/actions/default@master" + uses : "npm/.github/actions/default@v0.4.0" with : regex : '^(FEATURE)' subject : '${{ github.event.issue.title }}' input : 'issues | addLabels | context.repo | issue_number:${{ github.event.issue.number }} | labels:[ "feature" ]' token : '${{ secrets.GITHUB_TOKEN }}' - name : default label question - uses : "npm/.github/actions/default@master" + uses : "npm/.github/actions/default@v0.4.0" with : regex : '^(QUESTION)' subject : '${{ github.event.issue.title }}' input : 'issues | addLabels | context.repo | issue_number:${{ github.event.issue.number }} | labels:[ "question" ]' token : '${{ secrets.GITHUB_TOKEN }}' - name : default assignees actor - uses : "npm/.github/actions/default@master" + uses : "npm/.github/actions/default@v0.4.0" if : contains( github.actor , '[bot]' ) == false with : input : 'issues | addAssignees | context.repo | issue_number:${{ github.event.issue.number }} | assignees:[ "${{ github.actor }}" ]' diff --git a/.github/workflows/pulls.yml b/.github/workflows/pulls.yml index c00e408..5bdd7b1 100644 --- a/.github/workflows/pulls.yml +++ b/.github/workflows/pulls.yml @@ -33,28 +33,28 @@ jobs : runs-on : ubuntu-latest steps : - name : default label bug - uses : "npm/.github/actions/default@master" + uses : "npm/.github/actions/default@v0.4.0" with : regex : '^(fix)(\([\w\-]+\))?(\!)?(\:)' subject : '${{ github.event.pull_request.title }}' input : 'issues | addLabels | context.repo | issue_number:${{ github.event.pull_request.number }} | labels:[ "bug" ]' token : '${{ secrets.GITHUB_TOKEN }}' - name : default label feature - uses : "npm/.github/actions/default@master" + uses : "npm/.github/actions/default@v0.4.0" with : regex : '^(feat)(\([\w\-]+\))?(\!)?(\:)' subject : '${{ github.event.pull_request.title }}' input : 'issues | addLabels | context.repo | issue_number:${{ github.event.pull_request.number }} | labels:[ "feature" ]' token : '${{ secrets.GITHUB_TOKEN }}' - name : default label chore - uses : "npm/.github/actions/default@master" + uses : "npm/.github/actions/default@v0.4.0" with : regex : '^(chore)(\([\w\-]+\))?(\!)?(\:)' subject : '${{ github.event.pull_request.title }}' input : 'issues | addLabels | context.repo | issue_number:${{ github.event.pull_request.number }} | labels:[ "chore" ]' token : '${{ secrets.GITHUB_TOKEN }}' - name : default assignees actor - uses : "npm/.github/actions/default@master" + uses : "npm/.github/actions/default@v0.4.0" if : contains( github.actor , '[bot]' ) == false with : input : 'issues | addAssignees | context.repo | issue_number:${{ github.event.pull_request.number }} | assignees:[ "${{ github.actor }}" ]' diff --git a/package.json b/package.json index 0fb6f74..38065a1 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ } , "release" : { - "branch" : "master" , + "branches" : [ "main" ] , "tagFormat" : "v${version}" , "plugins" : [