Skip to content

Commit

Permalink
chore: update jsonnet
Browse files Browse the repository at this point in the history
  • Loading branch information
fhp committed Dec 11, 2024
1 parent b586eed commit c9aeb40
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/jsonnet/GIT_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7be999c2b8bc5c5713f9bc0203caac0ace3983a7
903df5c50ce29b0cffd1a206e1064fe087046a8f
5 changes: 2 additions & 3 deletions .github/jsonnet/misc.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ local base = import 'base.jsonnet';
local images = import 'images.jsonnet';

{
checkout(ifClause=null, fullClone=false, ref=null, sshKey=true)::
local with = (if fullClone then { 'fetch-depth': 0 } else {}) + (if ref != null then { ref: ref } else {}) +
(if sshKey then { 'ssh-key': '${{ secrets.VIRKO_GITHUB_SSH_KEY }}' } else {});
checkout(ifClause=null, fullClone=false, ref=null)::
local with = (if fullClone then { 'fetch-depth': 0 } else {}) + (if ref != null then { ref: ref } else {});
base.action(
'Check out repository code',
'actions/checkout@v4',
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"uses": "actions/checkout@v4"
"with":
"ref": "${{ github.event.pull_request.head.sha }}"
"ssh-key": "${{ secrets.VIRKO_GITHUB_SSH_KEY }}"
- "name": "git safe directory"
"run": "command -v git && git config --global --add safe.directory '*' || true"
- "name": "remove-workflows"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uses": "actions/checkout@v4"
"with":
"ref": "${{ github.event.pull_request.head.sha }}"
"ssh-key": "${{ secrets.VIRKO_GITHUB_SSH_KEY }}"
- "name": "git safe directory"
"run": "command -v git && git config --global --add safe.directory '*' || true"
- "env":
Expand Down Expand Up @@ -44,7 +43,6 @@
"uses": "actions/checkout@v4"
"with":
"ref": "${{ github.event.pull_request.head.sha }}"
"ssh-key": "${{ secrets.VIRKO_GITHUB_SSH_KEY }}"
- "name": "git safe directory"
"run": "command -v git && git config --global --add safe.directory '*' || true"
- "env":
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"uses": "actions/checkout@v4"
"with":
"ref": "${{ github.sha }}"
"ssh-key": "${{ secrets.VIRKO_GITHUB_SSH_KEY }}"
- "name": "git safe directory"
"run": "command -v git && git config --global --add safe.directory '*' || true"
- "env":
Expand Down

0 comments on commit c9aeb40

Please sign in to comment.