Skip to content

Commit

Permalink
fix: use action-git-auth v2
Browse files Browse the repository at this point in the history
  • Loading branch information
dgschwindturo committed Apr 12, 2022
1 parent 3693a0a commit e45adc7
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .commitlintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
extends:
- "@commitlint/config-conventional"
- "@open-turo/commitlint-config-conventional"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]
additional_dependencies: ["@open-turo/commitlint-config-conventional"]
- repo: https://github.com/rhysd/actionlint
rev: v1.6.8
hooks:
Expand Down
6 changes: 3 additions & 3 deletions lint/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ runs:
using: composite
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
if: inputs.checkout-repo
with:
fetch-depth: 0
- name: Setup tools
## Installs version of golang found in .go-version
uses: open-turo/action-setup-tools@v1
- name: Authorize
uses: open-turo/action-git-auth@v1
uses: open-turo/action-git-auth@v2
with:
token: ${{ inputs.github-token }}
github-personal-access-token: ${{ inputs.github-token }}
- name: Run npm ci if needed
if: hashFiles('package-lock.json') != ''
shell: bash
Expand Down
9 changes: 6 additions & 3 deletions release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@ runs:
using: composite
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
if: inputs.checkout-repo
with:
fetch-depth: 0
- name: Authorize
uses: open-turo/action-git-auth@v1
uses: open-turo/action-git-auth@v2
with:
token: ${{ inputs.github-token }}
github-personal-access-token: ${{ inputs.github-token }}
- name: Setup tools
## Installs version of golang found in .go-version
uses: open-turo/action-setup-tools@v1
- name: Semantic release
uses: go-semantic-release/action@v1
id: release
Expand Down
6 changes: 3 additions & 3 deletions test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ runs:
using: composite
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
if: inputs.checkout-repo
with:
fetch-depth: 0
- name: Setup tools
## Installs version of golang found in .go-version
uses: open-turo/action-setup-tools@v1
- name: Authorize
uses: open-turo/action-git-auth@v1
uses: open-turo/action-git-auth@v2
with:
token: ${{ inputs.github-token }}
github-personal-access-token: ${{ inputs.github-token }}
- name: Execute all go tests with coverage in current and all subdirectories
shell: bash
run: go test -cover ./...

0 comments on commit e45adc7

Please sign in to comment.