Update zizmorcore/zizmor-action action to v0.6.1 #130
Workflow file for this run
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: | |
| push: | |
| permissions: {} | |
| jobs: | |
| test-publish-cpan: | |
| name: Publishes a perl module to CPAN from a dist.ini | |
| runs-on: ubuntu-latest | |
| environment: Publish to CPAN | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set unique package version | |
| id: set-version | |
| run: | | |
| version=0.0.$GITHUB_RUN_NUMBER | |
| sed -i "s/0.0.0/$version/g" dist.ini | |
| echo "version=$version" >> $GITHUB_OUTPUT | |
| working-directory: "test" | |
| - name: Test the action | |
| uses: ./ | |
| with: | |
| cpan-user: ${{ secrets.CPAN_USER }} | |
| cpan-password: ${{ secrets.CPAN_PASSWORD }} | |
| working-directory: "test" | |
| - name: Assert that latest published package version is available on CPAN | |
| timeout-minutes: 60 | |
| run: | | |
| url="https://metacpan.org/release/CUKEBOT/Cucumber-Test-Release-Automation-$VERSION" | |
| echo "Checking for $VERSION on CPAN servers at $url" | |
| while ! curl --silent --fail $url > /dev/null | |
| do | |
| echo -n "." | |
| sleep 5 | |
| done | |
| env: | |
| VERSION: v${{ steps.set-version.outputs.version }} |