mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-07 05:20:30 +00:00
ci: Fix release workflow
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -32,20 +32,20 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
miri:
|
miri:
|
||||||
uses: taiki-e/github-actions/.github/workflows/miri.yml@4b7dd02e8c8bba1591c00f1442fc8cc29953d8f6 # main
|
uses: taiki-e/github-actions/.github/workflows/miri.yml@2474ed4664eb8903c151603a9d841512c069f7f6 # main
|
||||||
with:
|
with:
|
||||||
# NB: sync with test job's --exclude option
|
# NB: sync with test job's --exclude option
|
||||||
args: --exclude install-action-internal-codegen
|
args: --exclude install-action-internal-codegen
|
||||||
msrv:
|
msrv:
|
||||||
uses: taiki-e/github-actions/.github/workflows/msrv.yml@4b7dd02e8c8bba1591c00f1442fc8cc29953d8f6 # main
|
uses: taiki-e/github-actions/.github/workflows/msrv.yml@2474ed4664eb8903c151603a9d841512c069f7f6 # main
|
||||||
test-manifest-schema:
|
test-manifest-schema:
|
||||||
uses: taiki-e/github-actions/.github/workflows/test.yml@4b7dd02e8c8bba1591c00f1442fc8cc29953d8f6 # main
|
uses: taiki-e/github-actions/.github/workflows/test.yml@2474ed4664eb8903c151603a9d841512c069f7f6 # main
|
||||||
with:
|
with:
|
||||||
# NB: sync with miri job's --exclude option
|
# NB: sync with miri job's --exclude option
|
||||||
test-args: --exclude install-action-internal-codegen
|
test-args: --exclude install-action-internal-codegen
|
||||||
no-std: false
|
no-std: false
|
||||||
tidy:
|
tidy:
|
||||||
uses: taiki-e/github-actions/.github/workflows/tidy.yml@4b7dd02e8c8bba1591c00f1442fc8cc29953d8f6 # main
|
uses: taiki-e/github-actions/.github/workflows/tidy.yml@2474ed4664eb8903c151603a9d841512c069f7f6 # main
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # for creating branch for pr
|
contents: write # for creating branch for pr
|
||||||
pull-requests: write # unused (used in `codegen-automerge: true` case)
|
pull-requests: write # unused (used in `codegen-automerge: true` case)
|
||||||
|
|||||||
2
.github/workflows/manifest.yml
vendored
2
.github/workflows/manifest.yml
vendored
@@ -32,7 +32,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
manifest:
|
manifest:
|
||||||
uses: taiki-e/github-actions/.github/workflows/gen.yml@4b7dd02e8c8bba1591c00f1442fc8cc29953d8f6 # main
|
uses: taiki-e/github-actions/.github/workflows/gen.yml@2474ed4664eb8903c151603a9d841512c069f7f6 # main
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # for creating branch for pr
|
contents: write # for creating branch for pr
|
||||||
pull-requests: write # for gh pr review --approve
|
pull-requests: write # for gh pr review --approve
|
||||||
|
|||||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -34,7 +34,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
if: github.repository_owner == 'taiki-e' && inputs.target == 'install-action'
|
if: github.repository_owner == 'taiki-e' && inputs.target == 'install-action'
|
||||||
uses: taiki-e/github-actions/.github/workflows/action-release.yml@4b7dd02e8c8bba1591c00f1442fc8cc29953d8f6 # main
|
uses: taiki-e/github-actions/.github/workflows/action-release.yml@2474ed4664eb8903c151603a9d841512c069f7f6 # main
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # for taiki-e/create-gh-release-action
|
contents: write # for taiki-e/create-gh-release-action
|
||||||
secrets:
|
secrets:
|
||||||
@@ -46,7 +46,7 @@ jobs:
|
|||||||
|
|
||||||
release-manifest-schema:
|
release-manifest-schema:
|
||||||
if: github.repository_owner == 'taiki-e' && inputs.target == 'install-action-manifest-schema'
|
if: github.repository_owner == 'taiki-e' && inputs.target == 'install-action-manifest-schema'
|
||||||
uses: taiki-e/github-actions/.github/workflows/rust-release.yml@4b7dd02e8c8bba1591c00f1442fc8cc29953d8f6 # main
|
uses: taiki-e/github-actions/.github/workflows/rust-release.yml@2474ed4664eb8903c151603a9d841512c069f7f6 # main
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # for taiki-e/create-gh-release-action
|
contents: write # for taiki-e/create-gh-release-action
|
||||||
id-token: write # for rust-lang/crates-io-auth-action
|
id-token: write # for rust-lang/crates-io-auth-action
|
||||||
|
|||||||
@@ -36,10 +36,9 @@ for tool in "${tools[@]}"; do
|
|||||||
git add action.yml
|
git add action.yml
|
||||||
git commit -m "${tool}"
|
git commit -m "${tool}"
|
||||||
git tag -f "${tool}"
|
git tag -f "${tool}"
|
||||||
git checkout refs/tags/"${TAG}"
|
git checkout main
|
||||||
)
|
)
|
||||||
refs+=("+refs/heads/releases/${tool}" "+refs/tags/${tool}")
|
refs+=",+refs/heads/releases/${tool},+refs/tags/${tool}"
|
||||||
branches+=("releases/${tool}")
|
|
||||||
done
|
done
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
@@ -59,6 +58,7 @@ else
|
|||||||
schema_version="$(cut -d. -f1 <<<"${schema_version}")"
|
schema_version="$(cut -d. -f1 <<<"${schema_version}")"
|
||||||
fi
|
fi
|
||||||
schema_branch="manifest-schema-${schema_version}"
|
schema_branch="manifest-schema-${schema_version}"
|
||||||
|
refs+=",refs/heads/${schema_branch}"
|
||||||
|
|
||||||
if git fetch origin "${schema_branch}"; then
|
if git fetch origin "${schema_branch}"; then
|
||||||
git checkout "origin/${schema_branch}" -B "${schema_branch}"
|
git checkout "origin/${schema_branch}" -B "${schema_branch}"
|
||||||
@@ -78,5 +78,9 @@ git add .
|
|||||||
if [[ "$(git status --porcelain=v1 | LC_ALL=C wc -l)" != "0" ]]; then
|
if [[ "$(git status --porcelain=v1 | LC_ALL=C wc -l)" != "0" ]]; then
|
||||||
git commit -m 'Update manifest schema'
|
git commit -m 'Update manifest schema'
|
||||||
fi
|
fi
|
||||||
|
git checkout main
|
||||||
|
|
||||||
git checkout refs/tags/"${TAG}"
|
printf 'additional-refs: %s\n' "${refs}"
|
||||||
|
if [[ -n "${GITHUB_OUTPUT:-}" ]]; then
|
||||||
|
printf 'additional-refs=%s\n' "${refs}" >>"${GITHUB_OUTPUT}"
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user