diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 865b9d7..b70a712 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -43,6 +43,8 @@ jobs: needs: [ build-action-docker-image ] steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref || github.ref_name }} - uses : ./ name: Run action against itself with: @@ -59,6 +61,8 @@ jobs: needs: [ verify-action ] steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref || github.ref_name }} - name: Install modules run: npm ci - name: release diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index 21eefc2..b4e90c1 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -44,6 +44,8 @@ jobs: needs: [ build-action-docker-image ] steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref || github.ref_name }} - uses : ./ name: Run action against repoository with: