Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jriguera committed Mar 22, 2024
1 parent 1a92455 commit edc548e
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/release-final-boshrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install Bosh cli and other dependencies
run: |
mkdir -p .bin
wget https://github.com/cloudfoundry/bosh-cli/releases/download/v${BOSH_CLI_VERSION}/bosh-cli-${BOSH_CLI_VERSION}-linux-amd64 -O .bin/bosh
wget -nv https://github.com/cloudfoundry/bosh-cli/releases/download/v${BOSH_CLI_VERSION}/bosh-cli-${BOSH_CLI_VERSION}-linux-amd64 -O .bin/bosh
chmod a+x .bin/bosh
echo "$GITHUB_WORKSPACE/.bin" >> $GITHUB_PATH
Expand All @@ -44,6 +44,7 @@ jobs:
run: |
mkdir -p .build
bosh sync-blobs
echo "${GITHUB_REF#refs/tags/}"
if [[ "${GITHUB_REF#refs/tags/}" =~ ^refs/tags.* ]];
then
# the trigger does not come from a tag. Not a final version
Expand Down Expand Up @@ -71,13 +72,13 @@ jobs:
name: boshelease
path: ${{ steps.boshrelease.outputs.file }}

- name: Git commit final resources
if: ${{ steps.boshrelease.outputs.type == 'final' }}
run: |
git add .final_builds blobstore releases
git commit -m "Release version ${{ steps.boshrelease.outputs.version }}"
# This does not trigger another workflow with built-in `GITHUB_TOKEN` secret
git push
# - name: Git commit final resources
# if: ${{ steps.boshrelease.outputs.type == 'final' }}
# run: |
# git add .final_builds blobstore releases
# git commit -m "Release version ${{ steps.boshrelease.outputs.version }}"
# # This does not trigger another workflow with built-in `GITHUB_TOKEN` secret
# git push

- name: Generate release notes from git commits
run: |
Expand Down Expand Up @@ -111,13 +112,13 @@ jobs:
EOF
- name: Create a Release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
draft: ${{ steps.boshrelease.outputs.type != 'final' }}
tag_name: "v${{ steps.boshrelease.outputs.version }}"
files: ${{ steps.boshrelease.outputs.file }}
body_path: .build/release-notes.txt
generate_release_notes: true
make_latest: ${{ steps.boshrelease.outputs.type == 'final' }}
# - name: Create a Release
# uses: softprops/action-gh-release@v2
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# draft: ${{ steps.boshrelease.outputs.type != 'final' }}
# tag_name: "v${{ steps.boshrelease.outputs.version }}"
# files: ${{ steps.boshrelease.outputs.file }}
# body_path: .build/release-notes.txt
# generate_release_notes: true
# make_latest: ${{ steps.boshrelease.outputs.type == 'final' }}

0 comments on commit edc548e

Please sign in to comment.