Skip to content

Release

Release #14

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 45, Col: 13): Unexpected symbol: '"true"'. Located at position 38 within expression: steps.updCont.outputs.any_changed == "true" .github/workflows/release.yml (Line: 51, Col: 13): Unexpected symbol: '"true"'. Located at position 37 within expression: steps.updSrc.outputs.any_changed == "true"
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"