Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding app auth #310

Merged
merged 2 commits into from
Sep 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .github/workflows/npm-bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,17 @@ on:
jobs:
bump-version:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PEM }}

- uses: actions/checkout@v3
with:
token: ${{ steps.generate_token.outputs.token }}

- name: Setup environment
uses: actions/setup-node@v3.8.1
Expand All @@ -35,11 +42,6 @@ jobs:
- name: Run tests
run: yarn test

- name: Setup Git
run: |
git config user.name 'grafanabot'
git config user.email 'bot@grafana.com'

- name: bump version
run: npm version ${{ github.event.inputs.version }}

Expand Down