Skip to content

Commit

Permalink
Merge pull request #122 from jepler/improve-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler authored Nov 7, 2024
2 parents 13e0da8 + 287d2be commit d7a8dbb
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

with:
persist-credentials: false
- name: Install Dependencies (python)
run: pip3 install -r requirements-dev.txt

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
run: echo "$GITHUB_CONTEXT"

- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Python 3.10
uses: actions/setup-python@v5
Expand All @@ -37,8 +39,10 @@ jobs:
run: python -munittest

- name: Commit updates
env:
REPO: ${{ github.repository }}
run: |
git config user.name "${GITHUB_ACTOR} (github actions cron)"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git remote set-url --push origin https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git remote set-url --push origin "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/$REPO"
if git commit -m"update iersdata" src/wwvb/iersdata.json; then git push origin HEAD:main; fi
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
run: echo "$GITHUB_CONTEXT"

- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v5
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
python-version: '3.12'

- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install deps
run: python -mpip install -r requirements-dev.txt
Expand Down Expand Up @@ -52,6 +54,8 @@ jobs:
runs-on: ${{ matrix.os-version }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -84,6 +88,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude: tests
exclude: src/wwvb/iersdata.json
- id: trailing-whitespace
exclude: test/wwvbgen_testcases
- repo: https://github.com/fsfe/reuse-tool
Expand Down

0 comments on commit d7a8dbb

Please sign in to comment.