11
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2026-04-01 15:26:54 +00:00

feat: use action input instead of env var to get the github token

BREAKING CHANGE: GITHUB_TOKEN env var is now ignored. In case a custom token is needed,
it'll be necessary to pass it via the `token` input from now on.
This commit is contained in:
Wagner Santos 2020-08-02 10:57:20 -03:00
parent a413a3f439
commit 18e9bff0e6
4 changed files with 26 additions and 19 deletions

View file

@ -4,8 +4,6 @@ on: [push, pull_request]
jobs:
commitlint:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
@ -19,8 +17,6 @@ jobs:
run: echo ${{ toJSON(steps.run_commitlint.outputs.results) }}
commitlint-with-yml-file:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
@ -32,8 +28,6 @@ jobs:
configFile: './.commitlintrc.yml'
commitlint-pulling-from-docker-hub:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
with: