From 88a65cd2635e261a5557a75aa78da28acce6fda8 Mon Sep 17 00:00:00 2001 From: nickatnight Date: Wed, 1 Feb 2023 14:46:00 -0800 Subject: [PATCH] docs: update README; chore: update write permissions on biuld GHA --- .github/workflows/main.yml | 4 +++- README.md | 10 ++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f04d26a..0db98b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/README.md b/README.md index 2650131..b1f8ebe 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,8 @@ on: jobs: create-release: - permissions: write-all + permissions: + contents: write runs-on: ubuntu-latest steps: - name: checkout @@ -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 }} @@ -61,7 +62,8 @@ on: jobs: create-release: - permissions: write-all + permissions: + contents: write runs-on: ubuntu-latest steps: - name: checkout @@ -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"