@@ -2,9 +2,9 @@ name: Release
22
33on :
44 workflow_call :
5- # secrets:
6- # VAULT_URL:
7- # required: true
5+ secrets :
6+ VAULT_URL :
7+ required : true
88
99jobs :
1010 release :
@@ -16,28 +16,28 @@ jobs:
1616 actions : read
1717
1818 steps :
19- # - name: 'Retrieve Secrets from Vault'
20- # id: vault
21- # uses: hashicorp/vault-action@v3.4.0
22- # with:
23- # url: ${{ secrets.VAULT_URL }}
24- # role: ${{ github.event.repository.name }}-github-action
25- # method: jwt
26- # path: github-actions
27- # exportEnv: false
28- # secrets: |
29- # github/token/${{ github.event.repository.name }}-semantic-release token | GITHUB_TOKEN;
19+ - name : ' Retrieve Secrets from Vault'
20+ id : vault
21+ uses : hashicorp/vault-action@v3.4.0
22+ with :
23+ url : ${{ secrets.VAULT_URL }}
24+ role : ${{ github.event.repository.name }}-github-action
25+ method : jwt
26+ path : github-actions
27+ exportEnv : false
28+ secrets : |
29+ github/token/${{ github.event.repository.name }}-semantic-release token | GITHUB_TOKEN;
3030
31- # - name: Get Automation Bot User ID
32- # id: get-user-id
33- # run: echo "user-id=$(gh api "/users/contentful-automation[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
34- # env:
35- # GITHUB_TOKEN: ${{ steps.vault.outputs.GITHUB_TOKEN }}
31+ - name : Get Automation Bot User ID
32+ id : get-user-id
33+ run : echo "user-id=$(gh api "/users/contentful-automation[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
34+ env :
35+ GITHUB_TOKEN : ${{ steps.vault.outputs.GITHUB_TOKEN }}
3636
37- # - name: Setting up Git User Credentials
38- # run: |
39- # git config --global user.name 'contentful-automation[bot]'
40- # git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+contentful-automation[bot]@users.noreply.github.com'
37+ - name : Setting up Git User Credentials
38+ run : |
39+ git config --global user.name 'contentful-automation[bot]'
40+ git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+contentful-automation[bot]@users.noreply.github.com'
4141
4242 - name : Checkout code
4343 uses : actions/checkout@v5
@@ -71,18 +71,18 @@ jobs:
7171 env :
7272 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7373
74- # - name: Get latest release tag
75- # id: get-tag
76- # run: |
77- # TAG=$(gh api repos/${{ github.repository }}/releases/latest --jq .tag_name)
78- # echo "tag=$TAG" >> $GITHUB_OUTPUT
79- # env:
80- # GITHUB_TOKEN: ${{ steps.vault.outputs.GITHUB_TOKEN }}
74+ - name : Get latest release tag
75+ id : get-tag
76+ run : |
77+ TAG=$(gh api repos/${{ github.repository }}/releases/latest --jq .tag_name)
78+ echo "tag=$TAG" >> $GITHUB_OUTPUT
79+ env :
80+ GITHUB_TOKEN : ${{ steps.vault.outputs.GITHUB_TOKEN }}
8181
82- # - name: Summary
83- # run: |
84- # VERSION=$(echo "${{ steps.get-tag.outputs.tag }}" | sed 's/^v//')
85- # echo "## Release Summary" >> $GITHUB_STEP_SUMMARY
86- # echo "" >> $GITHUB_STEP_SUMMARY
87- # echo "- **Version**: ${{ steps.get-tag.outputs.tag }}" >> $GITHUB_STEP_SUMMARY
88- # echo "- **GitHub Release**: https://github.com/${{ github.repository }}/releases/tag/${{ steps.get-tag.outputs.tag }}" >> $GITHUB_STEP_SUMMARY
82+ - name : Summary
83+ run : |
84+ VERSION=$(echo "${{ steps.get-tag.outputs.tag }}" | sed 's/^v//')
85+ echo "## Release Summary" >> $GITHUB_STEP_SUMMARY
86+ echo "" >> $GITHUB_STEP_SUMMARY
87+ echo "- **Version**: ${{ steps.get-tag.outputs.tag }}" >> $GITHUB_STEP_SUMMARY
88+ echo "- **GitHub Release**: https://github.com/${{ github.repository }}/releases/tag/${{ steps.get-tag.outputs.tag }}" >> $GITHUB_STEP_SUMMARY
0 commit comments