Skip to content

Commit

Permalink
👷 Change Github Actions parameters to use OAuth2 secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
ENT8R committed Feb 14, 2024
1 parent 3f23cfb commit 3df5807
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ inputs:
description: 'The URL of the NotesReview API'
openstreetmap-server:
description: 'The URL of the OpenStreetMap server'
openstreetmap-oauth-key:
description: 'The OpenStreetMap OAuth key'
openstreetmap-oauth-secret:
description: 'The OpenStreetMap OAuth secret'
openstreetmap-oauth-client-id:
description: 'The OpenStreetMap OAuth client id'
openstreetmap-oauth-client-secret:
description: 'The OpenStreetMap OAuth client secret'
mapillary-client-id:
description: 'The Mapillary client id'

Expand All @@ -21,8 +21,8 @@ runs:
env:
NOTESREVIEW_API_URL: ${{ inputs.notesreview-api-url }}
OPENSTREETMAP_SERVER: ${{ inputs.openstreetmap-server }}
OPENSTREETMAP_OAUTH_KEY: ${{ inputs.openstreetmap-oauth-key }}
OPENSTREETMAP_OAUTH_SECRET: ${{ inputs.openstreetmap-oauth-secret }}
OPENSTREETMAP_OAUTH_CLIENT_ID: ${{ inputs.openstreetmap-oauth-client-id }}
OPENSTREETMAP_OAUTH_CLIENT_SECRET: ${{ inputs.openstreetmap-oauth-client-secret }}
MAPILLARY_CLIENT_ID: ${{ inputs.mapillary-client-id }}
run: |
npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
with:
notesreview-api-url: ${{ secrets.NOTESREVIEW_API_URL }}
openstreetmap-server: ${{ secrets.OPENSTREETMAP_SERVER }}
openstreetmap-oauth-key: ${{ secrets.OPENSTREETMAP_OAUTH_KEY }}
openstreetmap-oauth-secret: ${{ secrets.OPENSTREETMAP_OAUTH_SECRET }}
openstreetmap-oauth-client-id: ${{ secrets.OPENSTREETMAP_OAUTH_CLIENT_ID }}
openstreetmap-oauth-client-secret: ${{ secrets.OPENSTREETMAP_OAUTH_CLIENT_SECRET }}
mapillary-client-id: ${{ secrets.MAPILLARY_CLIENT_ID }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
Expand Down

0 comments on commit 3df5807

Please sign in to comment.