Event
push
Branch
main
Commit
6d7c28b
Started
Duration
9:10

Synced from GitHub

Pick the version

SuccessTook 0:04

Annotations

  • warning:

    Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

  • notice:

    "The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"

Steps

  1. 1Set up job, Success0:00
  2. 2Run actions/checkout@v4, Success0:01
  3. 3Pick the version, Success0:00
  4. 6Post Run actions/checkout@v4, Success0:01
  5. 7Complete job, Success0:00
Whole log, 15 KB
Current runner version: '2.338.2'
▸ Runner Image Provisioner
Hosted Compute Agent
Version: 20261103.629
Commit: 15dbd9ccb5dbf34fae002b6ed1a2670f52df37bc
Build Date: 2026-11-03T17:26:59Z
Worker ID: {2a8381ef-4f65-45ce-b47c-ca990d2317a5}
Region: eastus2
Cloud: Azure
▸ Operating System
Ubuntu
26.04.1
LTS
▸ Runner Image
Image: ubuntu-26.04
Version: 20261111.196.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu26/20261111.196/images/ubuntu/Ubuntu2604-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu26%2F20261111.196
▸ GITHUB_TOKEN Permissions
Contents: write
Metadata: read
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v4' (SHA:11d5960a326750d5838078e36cf38b85af677262)
Complete job name: Pick the version
▸ Run actions/checkout@v4
with:
  fetch-depth: 0
  repository: screen-gd/screen-time
  token: ***
  ssh-strict: true
  ssh-user: git
  persist-credentials: true
  clean: true
  sparse-checkout-cone-mode: true
  fetch-tags: false
  show-progress: true
  lfs: false
  submodules: false
  set-safe-directory: true
  allow-unsafe-pr-checkout: false
Syncing repository: screen-gd/screen-time
▸ Getting Git version info
Working directory is '/home/runner/work/screen-time/screen-time'
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/b63713ae-63c4-443a-b389-404c60f97c48' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/screen-time/screen-time
Deleting the contents of '/home/runner/work/screen-time/screen-time'
▸ Initializing the repository
[command]/usr/bin/git init /home/runner/work/screen-time/screen-time
hint: Using 'master' as the name for the initial branch. This default branch name
hint: will change to "main" in Git 3.0. To configure the initial branch name
hint: to use in all of your new repositories, which will suppress this warning,
hint: call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
hint:
hint: Disable this message with "git config set advice.defaultBranchName false"
Initialized empty Git repository in /home/runner/work/screen-time/screen-time/.git/
[command]/usr/bin/git remote add origin https://github.com/screen-gd/screen-time
▸ Disabling automatic garbage collection
[command]/usr/bin/git config --local gc.auto 0
▸ Setting up auth
[command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
[command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
[command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
▸ Fetching the repository
[command]/usr/bin/git -c protocol.version=2 fetch --prune --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*
From https://github.com/screen-gd/screen-time
 * [new branch]      auto-update             -> origin/auto-update
 * [new branch]      chore/bun-package-manager -> origin/chore/bun-package-manager
 * [new branch]      cross-platform          -> origin/cross-platform
 * [new branch]      dark-ui                 -> origin/dark-ui
 * [new branch]      devin/1793311545-backend-auth-cors -> origin/devin/1793311545-backend-auth-cors
 * [new branch]      devin/1793311681-security-model -> origin/devin/1793311681-security-model
 * [new branch]      fix/tray-frontend-lifecycle -> origin/fix/tray-frontend-lifecycle
 * [new branch]      hoplite/knosos-22e338ca -> origin/hoplite/knosos-22e338ca
 * [new branch]      hoplite/phanagoria-8d502e8a -> origin/hoplite/phanagoria-8d502e8a
 * [new branch]      main                    -> origin/main
 * [new branch]      pr-assets/dark-ui       -> origin/pr-assets/dark-ui
 * [new branch]      pr-assets/ui-polish     -> origin/pr-assets/ui-polish
 * [new branch]      release-on-merge        -> origin/release-on-merge
 * [new branch]      ui-polish               -> origin/ui-polish
 * [new tag]         v1.0.0                  -> v1.0.0
 * [new tag]         v1.1.0                  -> v1.1.0
 * [new tag]         v1.2.0                  -> v1.2.0
 * [new tag]         v1.2.1                  -> v1.2.1
 * [new tag]         v1.2.2                  -> v1.2.2
 * [new tag]         v1.2.3                  -> v1.2.3
 * [new tag]         v1.2.4                  -> v1.2.4
 * [new tag]         v1.2.5                  -> v1.2.5
 * [new tag]         v1.2.6                  -> v1.2.6
 * [new tag]         v1.2.7                  -> v1.2.7
 * [new tag]         v1.2.8                  -> v1.2.8
 * [new tag]         v1.2.9                  -> v1.2.9
[command]/usr/bin/git branch --list --remote origin/main
  origin/main
[command]/usr/bin/git rev-parse refs/remotes/origin/main
6d7c28b054b12185dbba88a77b7708b4e8046ed3
▸ Determining the checkout info
[command]/usr/bin/git sparse-checkout disable
[command]/usr/bin/git config --local --unset-all extensions.worktreeConfig
▸ Checking out the ref
[command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
Switched to a new branch 'main'
branch 'main' set up to track 'origin/main'.
[command]/usr/bin/git log -1 --format=%H
6d7c28b054b12185dbba88a77b7708b4e8046ed3
▸ Run declared=$(node -p "require('./package.json').version")
declared=$(node -p "require('./package.json').version")
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
  version="${GITHUB_REF_NAME#v}"
  if [[ "$version" != "$declared" ]]; then
    echo "::error::Tag $GITHUB_REF_NAME does not match package.json version $declared"
    exit 1
  fi
  publish=true
elif [[ "$GITHUB_REF" == refs/heads/main ]]; then
  tagged=$(git tag --points-at HEAD --list 'v*' | head -n 1)
  latest=$(git tag --list 'v*' --sort=-v:refname | head -n 1)
  # Use package.json when it is ahead of every release, else the next patch.
  version=$(node -e '
    const parse = (v) => (v || "0.0.0").replace(/^v/, "").split(".").map(Number);
    const declared = parse(process.argv[1]);
    const latest = parse(process.argv[2]);
    const ahead = (declared[0] - latest[0] || declared[1] - latest[1] || declared[2] - latest[2]) > 0;
    console.log((ahead ? declared : [latest[0], latest[1], latest[2] + 1]).join("."));
  ' "$declared" "$latest")
  publish=true
  if [[ -n "$tagged" ]]; then
    # A pushed tag already releases this commit; don't publish it twice.
    version="${tagged#v}"
    publish=false
  fi
else
  version="$declared"
  publish=false
fi
echo "Version $version (package.json $declared, publish $publish)"
echo "version=$version" >> "$GITHUB_OUTPUT"
echo "publish=$publish" >> "$GITHUB_OUTPUT"
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
Version 1.2.10 (package.json 1.2.2, publish true)
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/feec3e04-5bc2-4957-bd0c-19c583d41b74' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/screen-time/screen-time
[command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
[command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
http.https://github.com/.extraheader
[command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Evaluate and set job outputs
Set output 'version'
Set output 'publish'
Cleaning up orphan processes
Warning: Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/