diff --git a/.github/workflows/zz_generated.create_release.yaml b/.github/workflows/zz_generated.create_release.yaml index 3d10f45..01c4781 100644 --- a/.github/workflows/zz_generated.create_release.yaml +++ b/.github/workflows/zz_generated.create_release.yaml @@ -1,6 +1,6 @@ # DO NOT EDIT. Generated with: # -# devctl@6.23.3 +# devctl@6.17.1 # name: Create Release on: @@ -32,10 +32,11 @@ jobs: steps: - name: Get version id: get_version - env: - COMMIT_MESSAGE: ${{ github.event.head_commit.message }} run: | - title=$(echo -n "${COMMIT_MESSAGE}" | head -1) + title="$(cat <<- 'COMMIT_MESSAGE_END' | head -n 1 - + ${{ github.event.head_commit.message }} + COMMIT_MESSAGE_END + )" # Matches strings like: # # - "Release v1.2.3" @@ -52,7 +53,7 @@ jobs: echo "version=${version}" >> $GITHUB_OUTPUT - name: Checkout code if: ${{ steps.get_version.outputs.version != '' }} - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 - name: Get project.go path id: get_project_go_path if: ${{ steps.get_version.outputs.version != '' }} @@ -65,10 +66,11 @@ jobs: echo "path=${path}" >> $GITHUB_OUTPUT - name: Check if reference version id: ref_version - env: - COMMIT_MESSAGE: ${{ github.event.head_commit.message }} run: | - title=$(echo -n "${COMMIT_MESSAGE}" | head -1) + title="$(cat <<- 'COMMIT_MESSAGE_END' | head -n 1 - + ${{ github.event.head_commit.message }} + COMMIT_MESSAGE_END + )" if echo "${title}" | grep -qE '^release v[0-9]+\.[0-9]+\.[0-9]+([.-][^ .-][^ ]*)?( \(#[0-9]+\))?$' ; then version=$(echo "${title}" | cut -d ' ' -f 2) fi @@ -88,12 +90,12 @@ jobs: - gather_facts steps: - name: Install architect - uses: giantswarm/install-binary-action@c37eb401e5092993fc76d545030b1d1769e61237 # v3.0.0 + uses: giantswarm/install-binary-action@v1.1.0 with: binary: "architect" - version: "6.14.1" + version: "6.13.0" - name: Install semver - uses: giantswarm/install-binary-action@c37eb401e5092993fc76d545030b1d1769e61237 # v3.0.0 + uses: giantswarm/install-binary-action@v1.1.0 with: binary: "semver" version: "3.2.0" @@ -101,7 +103,7 @@ jobs: tarball_binary_path: "*/src/${binary}" smoke_test: "${binary} --version" - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 - name: Update project.go id: update_project_go env: @@ -142,15 +144,6 @@ jobs: title: "Bump version to ${{ steps.update_project_go.outputs.new_version }}" run: | gh pr create --title "${{ env.title }}" --body "" --base ${{ env.base }} --head ${{ env.branch }} --reviewer ${{ github.actor }} - - name: Enable auto-merge for PR - env: - GITHUB_TOKEN: "${{ secrets.TAYLORBOT_GITHUB_ACTION }}" - base: "${{ github.ref }}" - branch: "${{ github.ref }}-version-bump" - version: "${{ needs.gather_facts.outputs.version }}" - title: "Bump version to ${{ steps.update_project_go.outputs.new_version }}" - run: | - gh pr merge --auto --squash "${{ env.branch }}" || echo "::warning::Auto-merge not allowed. Please adjust the repository settings." create_release: name: Create release runs-on: ubuntu-22.04 @@ -161,7 +154,7 @@ jobs: upload_url: ${{ steps.create_gh_release.outputs.upload_url }} steps: - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 with: ref: ${{ github.sha }} - name: Ensure correct version in project.go @@ -172,7 +165,7 @@ jobs: grep -qE "version[[:space:]]*=[[:space:]]*\"$version\"" $file - name: Get Changelog Entry id: changelog_reader - uses: mindsers/changelog-reader-action@32aa5b4c155d76c94e4ec883a223c947b2f02656 # v2.2.3 + uses: mindsers/changelog-reader-action@v2 with: version: ${{ needs.gather_facts.outputs.version }} path: ./CHANGELOG.md @@ -191,7 +184,7 @@ jobs: git push "${REMOTE_REPO}" --tags - name: Create release id: create_gh_release - uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0 + uses: ncipollo/release-action@v1 env: GITHUB_TOKEN: "${{ secrets.TAYLORBOT_GITHUB_ACTION }}" with: @@ -206,7 +199,7 @@ jobs: if: ${{ needs.gather_facts.outputs.version }} steps: - name: Install semver - uses: giantswarm/install-binary-action@c37eb401e5092993fc76d545030b1d1769e61237 # v3.0.0 + uses: giantswarm/install-binary-action@v1.1.0 with: binary: "semver" version: "3.0.0" @@ -214,7 +207,7 @@ jobs: tarball_binary_path: "*/src/${binary}" smoke_test: "${binary} --version" - name: Check out the repository - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 with: fetch-depth: 0 # Clone the whole history, not just the most recent commit. - name: Fetch all tags and branches diff --git a/.github/workflows/zz_generated.create_release_pr.yaml b/.github/workflows/zz_generated.create_release_pr.yaml index 3aba2ab..968cbf4 100644 --- a/.github/workflows/zz_generated.create_release_pr.yaml +++ b/.github/workflows/zz_generated.create_release_pr.yaml @@ -1,6 +1,6 @@ # DO NOT EDIT. Generated with: # -# devctl@6.23.3 +# devctl@6.17.1 # name: Create Release PR on: @@ -143,16 +143,16 @@ jobs: env: architect_flags: "--organisation ${{ github.repository_owner }} --project ${{ needs.gather_facts.outputs.repo_name }}" steps: - - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 + - uses: actions/setup-go@v3 with: go-version: '=1.18.1' - name: Install architect - uses: giantswarm/install-binary-action@c37eb401e5092993fc76d545030b1d1769e61237 # v3.0.0 + uses: giantswarm/install-binary-action@v1.1.0 with: binary: "architect" version: "6.11.0" - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 with: ref: ${{ needs.gather_facts.outputs.branch }} - name: Prepare release changes