Skip to content

Commit

Permalink
Don't run tests for dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
thoukydides committed Nov 30, 2024
1 parent 3f05d72 commit bda57cd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on: [push, workflow_dispatch]

jobs:
test:
if: github.actor != 'dependabot[bot]'

runs-on: ubuntu-latest

strategy:
Expand Down Expand Up @@ -32,8 +34,11 @@ jobs:
run: npm run build

- name: Retrieve an Electrolux Group API Access Token
run: echo "ELECTROLUX_ACCESS_TOKEN=$(curl -s https://www.thouky.co.uk/api/oauth/electrolux/${{ secrets.ELECTROLUX_API_KEY }})" >> $GITHUB_ENV

run: |
curl -s https://www.thouky.co.uk/api/oauth/electrolux/${{ secrets.ELECTROLUX_API_KEY }} -o token.txt
echo "::add-mask::$(cat token.txt)"
echo "ELECTROLUX_ACCESS_TOKEN=$(cat token.txt)" >> $GITHUB_ENV
- name: Run the tests
run: npm run test
env:
Expand Down

0 comments on commit bda57cd

Please sign in to comment.