mirror of
https://github.com/github/gitignore.git
synced 2026-10-30 06:32:41 +01:00
Update release workflow to simplify output handling
This commit is contained in:
1 parent
c423f80fa7
commit
883dea6e8e
1 file changed
+3
-3
@@ -2,7 +2,7 @@ name: Release
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main, release ]
|
branches: [ main ]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
OUTPUT="$GITHUB_SHA:.gitignore_global"
|
OUTPUT=".gitignore_global"
|
||||||
OUTPUT_PATH="$GITHUB_WORKSPACE/$OUTPUT"
|
OUTPUT_PATH="$GITHUB_WORKSPACE/$OUTPUT"
|
||||||
|
|
||||||
> "$OUTPUT_PATH"
|
> "$OUTPUT_PATH"
|
||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: >-
|
run: >-
|
||||||
gh release create "$GITHUB_REF_NAME" "$GITHUB_WORKSPACE/$GITHUB_SHA:.gitignore_global"
|
gh release create "$GITHUB_REF_NAME" "$GITHUB_WORKSPACE/.gitignore_global"
|
||||||
--repo "$GITHUB_REPOSITORY"
|
--repo "$GITHUB_REPOSITORY"
|
||||||
--title "$GITHUB_REF_NAME"
|
--title "$GITHUB_REF_NAME"
|
||||||
--generate-notes
|
--generate-notes
|
||||||
Reference in new issue
Block a user