diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml index 39896591..23938bb6 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/beta-release.yml @@ -21,10 +21,11 @@ jobs: outputs: tag: ${{ steps.version-and-tag.outputs.tag }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: ref: 'main' fetch-depth: 0 + fetch-tags: true - name: Setup Node.js ${{ needs.get-configs.outputs.node-version }} uses: actions/setup-node@v4 @@ -62,6 +63,7 @@ jobs: FULL_TAG="v${INPUT_VERSION}-beta" git tag "$FULL_TAG" git push origin "$FULL_TAG" + echo "Created tag from branch=$(git rev-parse --abbrev-ref HEAD), commit=$(git rev-parse HEAD), tag=$(git describe --tags --exact-match)" echo "tag=$FULL_TAG" >> $GITHUB_OUTPUT diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 57f456cf..4a0ba7e4 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -28,13 +28,14 @@ jobs: needs: [get-configs] runs-on: ${{ inputs.runs-on }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: ref: ${{ inputs.ref }} + fetch-tags: true - - name: Log Commit and Branch + - name: Git Status shell: bash - run: echo "Checked out sha=${{ github.sha }} ref=${{ github.ref }} head_ref=${{ github.head_ref }}" + run: echo "Building from branch=$(git rev-parse --abbrev-ref HEAD), commit=$(git rev-parse HEAD), tag=$(git describe --tags --exact-match)" - name: Setup Node.js ${{ needs.get-configs.outputs.node-version }} (${{ inputs.runs-on }}-${{ inputs.arch }}) uses: actions/setup-node@v4 @@ -58,13 +59,14 @@ jobs: runs-on: ${{ inputs.runs-on }} steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: ref: ${{ inputs.ref }} - - - name: Log Commit and Branch + fetch-tags: true + + - name: Git Status shell: bash - run: echo "Checked out sha=${{ github.sha }} ref=${{ github.ref }} head_ref=${{ github.head_ref }}" + run: echo "Building from branch=$(git rev-parse --abbrev-ref HEAD), commit=$(git rev-parse HEAD), tag=$(git describe --tags --exact-match)" - name: Setup Go ${{ needs.get-configs.outputs.go-version }} (${{ inputs.runs-on }}-${{ inputs.arch }}) uses: actions/setup-go@v4 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 529511d9..56741913 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -15,7 +15,7 @@ jobs: contents: read pull-requests: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Setup Node.js ${{ needs.get-configs.outputs.node-version }} uses: actions/setup-node@v4 @@ -55,7 +55,7 @@ jobs: needs: [get-configs] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Setup Go ${{ needs.get-configs.outputs.go-version }} uses: actions/setup-go@v4 diff --git a/.github/workflows/prod-release.yml b/.github/workflows/prod-release.yml index 0f031763..e3b72b6f 100644 --- a/.github/workflows/prod-release.yml +++ b/.github/workflows/prod-release.yml @@ -17,10 +17,11 @@ jobs: outputs: tag: ${{ steps.version-and-tag.outputs.tag }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: ref: 'main' fetch-depth: 0 + fetch-tags: true - name: Configure Git run: | @@ -46,7 +47,8 @@ jobs: # Create and push production tag git tag "$PROD_TAG" git push origin "$PROD_TAG" - + + echo "Created tag from branch=$(git rev-parse --abbrev-ref HEAD), commit=$(git rev-parse HEAD), tag=$(git describe --tags --exact-match)" echo "tag=$PROD_TAG" >> $GITHUB_OUTPUT call-release: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5bc2dac9..0e4d4ffc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,7 @@ jobs: tag: ${{ steps.validate-tag.outputs.tag }} is-prerelease: ${{ steps.validate-tag.outputs.is-prerelease }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: ref: ${{ inputs.tag }} @@ -77,9 +77,14 @@ jobs: matrix: ${{ fromJson(needs.get-build-matrix.outputs.build-matrix) }} runs-on: ${{ matrix.runner }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: ref: ${{ needs.version-and-tag.outputs.tag }} + fetch-tags: true + + - name: Git Status + shell: bash + run: echo "Bundling from branch=$(git rev-parse --abbrev-ref HEAD), commit=$(git rev-parse HEAD), tag=$(git describe --tags --exact-match)" - name: Setup Node.js ${{ needs.get-configs.outputs.node-version }} (${{ matrix.runner }}-${{ matrix.arch }}) uses: actions/setup-node@v4