-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,53 @@ | ||
name: Release | ||
|
||
"on": ["create"] | ||
"on": | ||
create: | ||
pull_request: | ||
types: [opened,synchronize] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
jobs: | ||
openPR: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: tj-actions/changed-files@v40 | ||
id: updCont | ||
with: | ||
files: | ||
- "content/**" | ||
- "data/**" | ||
- uses: tj-actions/changed-files@v40 | ||
id: updSrc | ||
with: | ||
files: | ||
- ".github/**" | ||
- "./**" | ||
- "layout/**" | ||
- "static/**" | ||
- name: Create PR | ||
if: {{ github.event_name != create }} | ||
Check failure on line 32 in .github/workflows/release.yml GitHub Actions / yamllint
|
||
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 }} | ||
Check failure on line 43 in .github/workflows/release.yml GitHub Actions / yamllint
|
||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh pr edit --add-label "create post" | ||
- name: Mark as dev | ||
if: {{ steps.updSrc.outputs.any_changed }} | ||
Check failure on line 49 in .github/workflows/release.yml GitHub Actions / yamllint
|
||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh pr edit --add-label "development" |