Skip to content

Commit

Permalink
fix: changelog name of file uploaded should be unique (#1252)
Browse files Browse the repository at this point in the history
  • Loading branch information
netbe authored Apr 9, 2024
1 parent 2f1378a commit 6495b22
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/_reusable_app_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,20 @@ jobs:
run: |
echo "{}" > ./package.json
npx [email protected] -t "$PREVIOUS_TAG...$CURRENT_TAG"
- name: 'Set date variable'
id: date
run: echo "::set-output name=date::$(date +%s%N)"

- name: 'Upload changelog'
id: upload-file
uses: actions/upload-artifact@v4
with:
name: CHANGELOG.md
name: CHANGELOG-${{ github.run_number }}-${{ steps.date.outputs.date }}.md
path: ./CHANGELOG.md
if-no-files-found: error
overwrite: true

- name: Expose url of changelog
id: expose-url
run: echo "changelog=${{ steps.upload-file.outputs.artifact-url }}" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -136,10 +143,7 @@ jobs:
with:
token: ${{ secrets.SUBMODULE_PAT }}
submodules: recursive
- name: Download changelog
uses: actions/download-artifact@v4
with:
name: CHANGELOG.md

- name: Retrieve Xcode version
run: |
echo "XCODE_VERSION=$(cat .xcode-version)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 6495b22

Please sign in to comment.