Skip to content

fix: modify release config #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 55 additions & 55 deletions .github/workflows/notify-integration-release-via-tag.yaml
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
name: Notify Integration Release (Tag)
on:
push:
tags:
- '*.*.*' # Proper releases
jobs:
strip-version:
runs-on: ubuntu-latest
outputs:
packer-version: ${{ steps.strip.outputs.packer-version }}
steps:
- name: Strip leading v from version tag
id: strip
env:
REF: ${{ github.ref_name }}
run: |
echo "packer-version=$(echo "$REF" | sed -E 's/v?([0-9]+\.[0-9]+\.[0-9]+)/\1/')" >> "$GITHUB_OUTPUT"
notify-release:
needs:
- strip-version
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
ref: ${{ github.ref }}
# Ensure that Docs are Compiled
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
- shell: bash
run: make generate
- shell: bash
run: |
uncommitted="$(git status -s)"
if [[ -z "$uncommitted" ]]; then
echo "OK"
else
echo "Docs have been updated, but the compiled docs have not been committed."
echo "Run 'make generate', and commit the result to resolve this error."
echo "Generated but uncommitted files:"
echo "$uncommitted"
exit 1
fi
# Perform the Release
- name: Checkout integration-release-action
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
repository: hashicorp/integration-release-action
path: ./integration-release-action
- name: Notify Release
uses: ./integration-release-action
with:
integration_identifier: "packer/hashicorp/tencentcloud"
release_version: ${{ needs.strip-version.outputs.packer-version }}
release_sha: ${{ github.ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}
# name: Notify Integration Release (Tag)
# on:
# push:
# tags:
# - '*.*.*' # Proper releases
# jobs:
# strip-version:
# runs-on: ubuntu-latest
# outputs:
# packer-version: ${{ steps.strip.outputs.packer-version }}
# steps:
# - name: Strip leading v from version tag
# id: strip
# env:
# REF: ${{ github.ref_name }}
# run: |
# echo "packer-version=$(echo "$REF" | sed -E 's/v?([0-9]+\.[0-9]+\.[0-9]+)/\1/')" >> "$GITHUB_OUTPUT"
# notify-release:
# needs:
# - strip-version
# runs-on: ubuntu-latest
# steps:
# - name: Checkout this repo
# uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
# with:
# ref: ${{ github.ref }}
# # Ensure that Docs are Compiled
# - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
# - shell: bash
# run: make generate
# - shell: bash
# run: |
# uncommitted="$(git status -s)"
# if [[ -z "$uncommitted" ]]; then
# echo "OK"
# else
# echo "Docs have been updated, but the compiled docs have not been committed."
# echo "Run 'make generate', and commit the result to resolve this error."
# echo "Generated but uncommitted files:"
# echo "$uncommitted"
# exit 1
# fi
# # Perform the Release
# - name: Checkout integration-release-action
# uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
# with:
# repository: hashicorp/integration-release-action
# path: ./integration-release-action
# - name: Notify Release
# uses: ./integration-release-action
# with:
# integration_identifier: "packer/hashicorp/tencentcloud"
# release_version: ${{ needs.strip-version.outputs.packer-version }}
# release_sha: ${{ github.ref }}
# github_token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
- name: Describe plugin
id: plugin_describe
run: echo "api_version=$(go run . describe | jq -r '.api_version')" >> "$GITHUB_OUTPUT"
- name: Install signore
uses: hashicorp/setup-signore-package@v1
# - name: Install signore
# uses: hashicorp/setup-signore-package@v1
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
with:
Expand Down
Loading