feat(wedof): update certificationFolder action #5841
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Write Pre Release notes | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, edited, closed, labeled] | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
Release: | |
if: contains(github.event.pull_request.labels.*.name, 'pre-release') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Set RELEASE env var from package.json | |
run: echo RELEASE=$(node --print "require('./package.json').rcVersion") >> $GITHUB_ENV | |
- name: Create release notes | |
uses: release-drafter/release-drafter@v5 | |
with: | |
config-name: pre-release-drafter.yml | |
commitish: main | |
prerelease: true | |
tag: ${{ env.RELEASE }} | |
name: ${{ env.RELEASE }} | |
version: ${{ env.RELEASE }} | |
latest: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |