Skip to content

Release

Release #13

Workflow file for this run

name: Release
"on":
create:
pull_request:
types: [opened,synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
openPR:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: tj-actions/changed-files@v40
id: updCont
with:
files:
- "content/**"

Check failure on line 21 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: 21, Col: 13): A sequence was not expected .github/workflows/release.yml (Line: 27, Col: 13): A sequence was not expected

Check failure on line 21 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: 21, Col: 13): A sequence was not expected .github/workflows/release.yml (Line: 27, Col: 13): A sequence was not expected
- "data/**"
- uses: tj-actions/changed-files@v40
id: updSrc
with:
files:
- ".github/**"
- "./**"
- "layout/**"
- "static/**"
- 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 }}
env:
GH_TOKEN: ${{ github.token }}
run: |
gh pr edit --add-label "create post"
- name: Mark as dev
if: {{ steps.updSrc.outputs.any_changed }}
env:
GH_TOKEN: ${{ github.token }}
run: |
gh pr edit --add-label "development"