diff --git a/.github/workflows/branding.yml b/.github/workflows/branding.yml index ff04c70d..ed4d79e1 100644 --- a/.github/workflows/branding.yml +++ b/.github/workflows/branding.yml @@ -103,12 +103,20 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.ref }} + fetch-depth: 2 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' + - name: Fetch latest changes + run: | + git checkout ${{ github.ref_name }} + git pull origin ${{ github.ref_name }} + - name: Update Metrics Snapshot run: | mkdir -p .github/metrics @@ -139,5 +147,5 @@ jobs: git add .github/metrics/branding.json .github/metrics/branding-log.md if ! git diff --cached --quiet; then git commit -m "chore(branding): update metrics snapshot [skip ci]" - git push + git push origin ${{ github.ref_name }} fi