Skip to content

Commit

Permalink
Merge pull request #99 from nowsprinting/chore/fix_workflows
Browse files Browse the repository at this point in the history
Fix workflows
  • Loading branch information
nowsprinting authored Sep 21, 2024
2 parents b18c32a + 9bd55af commit 1e05fcd
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
jobs:
actionlint:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
actions: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
jobs:
create-release-pr:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
pull-requests: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/metacheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
jobs:
meta-check:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
actions: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
pr-labeler:
if: github.event.pull_request.head.repo.fork == false # Skip on public fork
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
pull-requests: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
release-drafter:
if: github.repository_owner == 'nowsprinting' # Skip on forked repo
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
pull-requests: read
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
check-bump-version:
if: github.repository_owner == 'nowsprinting' # Skip on forked repo
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
outputs:
Expand All @@ -34,6 +35,7 @@ jobs:
needs: check-bump-version
if: ${{ needs.check-bump-version.outputs.new-version }}
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
pull-requests: read
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
test:
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets.
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
checks: write
Expand All @@ -35,8 +36,9 @@ jobs:
matrix:
unityVersion: # Available versions see: https://game.ci/docs/docker/versions
- 2019.4.40f1
- 2022.3.29f1
- 2022.3.42f1
- 2023.2.20f1
- 6000.0.20f1
include:
- unityVersion: 2019.4.40f1
octocov: true
Expand All @@ -50,9 +52,11 @@ jobs:
- uses: actions/cache@v4
with:
path: ${{ env.CREATED_PROJECT_PATH }}/Library
key: Library-${{ matrix.unityVersion }}
key: Library-linux-${{ matrix.unityVersion }}-${{ github.ref }}
restore-keys: |
Library-
Library-linux-${{ matrix.unityVersion }}
Library-linux
Library
- name: Get package checkout path
run: |
Expand Down Expand Up @@ -124,6 +128,7 @@ jobs:
needs: test
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets.
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
actions: read

Expand Down

0 comments on commit 1e05fcd

Please sign in to comment.