From 985cf487c84d3fa4276d66bd34a70169c9e1a239 Mon Sep 17 00:00:00 2001 From: Martin Frost Date: Fri, 5 Sep 2025 09:45:25 +0200 Subject: [PATCH 1/2] chore: Checkout code before release The `gh` cli tool likes to be in a repo to work properly. --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 053cbb9..6f5e943 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,6 +49,7 @@ jobs: needs: build_and_test runs-on: ubuntu-latest steps: + - uses: actions/checkout@v5 - name: Bump version and push tag id: tag_version uses: mathieudutour/github-tag-action@v6.2 From de7d5d43dc9884274756ba0d9ae6ec3cd94729aa Mon Sep 17 00:00:00 2001 From: Martin Frost Date: Fri, 5 Sep 2025 09:46:09 +0200 Subject: [PATCH 2/2] chore: Format yaml properly --- .github/workflows/build.yml | 78 ++++++++++++++++++------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6f5e943..3507123 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,48 +15,48 @@ jobs: otp: ["27", "28"] fail-fast: false steps: - - uses: actions/checkout@v5 - - uses: erlef/setup-beam@v1 - id: setup-beam - with: - otp-version: ${{matrix.otp}} - rebar3-version: "3" - - name: Compile - run: make compile - - name: Check format - run: make check-format - - name: Run xref - run: make xref - - name: Fetch PLT - uses: actions/cache@v4 - id: cache-plt - with: - path: | - _build/default/*_plt - key: dialyzer-${{ github.ref_name }}-${{ matrix.otp }} - restore-keys: | - dialyzer-${{ github.event.repository.default_branch || 'master' }}-${{ matrix.otp }} - dialyzer-${{ github.event.repository.default_branch || 'master' }}- - - name: Run dialyzer - run: make dialyze - - name: Run eunit tests - run: make eunit - - name: Run ct tests - run: make ct + - uses: actions/checkout@v5 + - uses: erlef/setup-beam@v1 + id: setup-beam + with: + otp-version: ${{matrix.otp}} + rebar3-version: "3" + - name: Compile + run: make compile + - name: Check format + run: make check-format + - name: Run xref + run: make xref + - name: Fetch PLT + uses: actions/cache@v4 + id: cache-plt + with: + path: | + _build/default/*_plt + key: dialyzer-${{ github.ref_name }}-${{ matrix.otp }} + restore-keys: | + dialyzer-${{ github.event.repository.default_branch || 'master' }}-${{ matrix.otp }} + dialyzer-${{ github.event.repository.default_branch || 'master' }}- + - name: Run dialyzer + run: make dialyze + - name: Run eunit tests + run: make eunit + - name: Run ct tests + run: make ct release: if: github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'no-release:') == false needs: build_and_test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - name: Bump version and push tag - id: tag_version - uses: mathieudutour/github-tag-action@v6.2 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - - name: Create GitHub Release - shell: bash - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh release create "${{ steps.tag_version.outputs.new_tag }}" --generate-notes + - uses: actions/checkout@v5 + - name: Bump version and push tag + id: tag_version + uses: mathieudutour/github-tag-action@v6.2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Create GitHub Release + shell: bash + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release create "${{ steps.tag_version.outputs.new_tag }}" --generate-notes