Skip to content

Commit

Permalink
Merge pull request #3 from nickatnight/nickatnight-version-bump-v5
Browse files Browse the repository at this point in the history
Update README and write permissions on build GHA
  • Loading branch information
nickatnight authored Feb 1, 2023
2 parents 2d895fe + 88a65cd commit 981f18b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on: push

jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create Release
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ on:

jobs:
create-release:
permissions: write-all
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -32,7 +33,7 @@ jobs:
fetch-depth: 0 # need this for all history for all branches and tags
- name: Create Release
id: create_release
uses: nickatnight/releases-action@v4
uses: nickatnight/releases-action@v5
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -61,7 +62,8 @@ on:

jobs:
create-release:
permissions: write-all
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -70,7 +72,7 @@ jobs:
fetch-depth: 0
- name: Create Release
id: create_release
uses: nickatnight/releases-action@v4
uses: nickatnight/releases-action@v5
if: startsWith(github.ref, 'refs/tags/')
with:
branch: "main"
Expand Down

0 comments on commit 981f18b

Please sign in to comment.