Release #14
Workflow file for this run
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: Release | ||
"on": | ||
create: | ||
pull_request: | ||
types: [opened, synchronize] | ||
workflow_dispatch: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
openPR: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
pull-requests: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: tj-actions/changed-files@v45 | ||
id: updCont | ||
with: | ||
files: | | ||
content/** | ||
data/** | ||
- uses: tj-actions/changed-files@v45 | ||
id: updSrc | ||
with: | ||
files: | | ||
* | ||
!content/** | ||
!data/** | ||
- name: Create PR | ||
if: ${{ github.event_name }} != create | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh pr create \ | ||
--base "main" \ | ||
--head "${{ github.ref_name }}" \ | ||
--title "Release/${{ github.ref_name }}" \ | ||
--body "" \ | ||
--draft | ||
- name: Mark as post | ||
if: steps.updCont.outputs.any_changed == "true" | ||
Check failure on line 45 in .github/workflows/release.yml GitHub Actions / ReleaseInvalid workflow file
|
||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh pr edit --add-label "create post" | ||
- name: Mark as dev | ||
if: steps.updSrc.outputs.any_changed == "true" | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh pr edit --add-label "development" |