Skip to content

Commit

Permalink
Update CD permissions for uploading release artifacts (#4529)
Browse files Browse the repository at this point in the history
Also bump softprops/action-gh-release to v2.1.0.

(cherry picked from commit 25d00af)

# Conflicts:
#	.github/workflows/release-notes.yml
#	.github/workflows/scala-cli-example.yml
  • Loading branch information
jackkoenig authored and mergify[bot] committed Nov 26, 2024
1 parent bb562f2 commit b9efa6c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ on:
jobs:
generate_release_notes:
name: Generate Release Notes
<<<<<<< HEAD
runs-on: ubuntu-latest
=======
runs-on: ubuntu-22.04
permissions:
contents: write
>>>>>>> 25d00af83 (Update CD permissions for uploading release artifacts (#4529))

steps:
- name: Checkout
Expand All @@ -41,7 +47,7 @@ jobs:
run: echo "$CHANGELOG" >> $GITHUB_STEP_SUMMARY
- name: Upload Release Notes (on release)
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2.0.5
uses: softprops/action-gh-release@v2.1.0
with:
body: ${{ steps.release-notes.outputs.changelog }}
- name: Error on uncategorized PRs
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/scala-cli-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@ on:
jobs:
generate_scala_cli_example:
name: Generate Scala CLI Example
<<<<<<< HEAD
runs-on: ubuntu-latest
=======
uses: ./.github/workflows/build-scala-cli-example.yml

publish_example:
name: Generate Chisel Scala CLI Example
needs: [generate_scala_cli_example]
runs-on: ubuntu-22.04
permissions:
contents: write
>>>>>>> 25d00af83 (Update CD permissions for uploading release artifacts (#4529))

steps:
- name: Checkout
Expand All @@ -26,7 +37,7 @@ jobs:
retention-days: 7
- name: Upload To Release Page
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2.0.5
uses: softprops/action-gh-release@v2.1.0
with:
files: chisel-example.scala

0 comments on commit b9efa6c

Please sign in to comment.