Bump actions/upload-artifact from 4 to 6 #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test on Dependabot PR | |
| on: | |
| pull_request: {} | |
| permissions: | |
| pull-requests: read | |
| contents: write | |
| jobs: | |
| dependabot-test: | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'FortnoxAB/changesets-java-dependabot-action' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Copy the action so that it can be used in the workflow | |
| - name: Copy action | |
| shell: bash | |
| run: | | |
| mkdir -p .github/actions/dependabot-changesets-action | |
| cp action.yml .github/actions/dependabot-changesets-action/action.yml | |
| - uses: ./.github/actions/dependabot-changesets-action | |
| - uses: actions/upload-artifact@v6 | |
| with: | |
| name: changeset-folder | |
| include-hidden-files: true | |
| path: .changeset | |
| - name: Validate | |
| shell: bash | |
| run: | | |
| if [ ! -f .changeset/dependabot-${GITHUB_SHA::7}.md ]; then | |
| echo "Changeset file not found" | |
| exit 1 | |
| fi | |
| echo "Changeset file created successfully" | |
| cat .changeset/dependabot-${GITHUB_SHA::7}.md || true |