Skip to content

Commit 8e59fb7

Browse files
author
Alvaro Muñoz
committed
fix(actions): ql pack installation
1 parent 003b8cc commit 8e59fb7

File tree

3 files changed

+42
-12
lines changed

3 files changed

+42
-12
lines changed

.github/action/dist/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28677,9 +28677,7 @@ async function downloadPack(codeql) {
2867728677
exports.downloadPack = downloadPack;
2867828678
async function installPack(codeql, dir) {
2867928679
try {
28680-
await runCommand(codeql, ["pack", "download", "githubsecuritylab/actions-all"], path.join(dir, "/ql/lib"));
2868128680
await runCommand(codeql, ["pack", "install"], path.join(dir, "/ql/lib"));
28682-
await runCommand(codeql, ["pack", "download", "githubsecuritylab/actions-queries"], path.join(dir, "/ql/src"));
2868328681
await runCommand(codeql, ["pack", "install"], path.join(dir, "/ql/src"));
2868428682
return true;
2868528683
}

.github/action/src/codeql.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,7 @@ export async function installPack(
111111
dir: string,
112112
): Promise<boolean> {
113113
try {
114-
await runCommand(
115-
codeql,
116-
["pack", "download", "githubsecuritylab/actions-all"],
117-
path.join(dir, "/ql/lib"),
118-
);
119114
await runCommand(codeql, ["pack", "install"], path.join(dir, "/ql/lib"));
120-
await runCommand(
121-
codeql,
122-
["pack", "download", "githubsecuritylab/actions-queries"],
123-
path.join(dir, "/ql/src"),
124-
);
125115
await runCommand(codeql, ["pack", "install"], path.join(dir, "/ql/src"));
126116
return true;
127117
} catch (error) {

.github/workflows/simple2.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
changed_files:
10+
runs-on: ubuntu-latest
11+
name: Test changed-files
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Get changed files
18+
id: source
19+
uses: tj-actions/changed-files@v40
20+
21+
- name: Remove foo from changed files
22+
id: step
23+
uses: mad9000/actions-find-and-replace-string@3
24+
with:
25+
source: ${{ steps.source.outputs.all_changed_files }}
26+
find: 'foo'
27+
replace: ''
28+
29+
- name: List all changed files
30+
id: sink
31+
run: |
32+
for file in ${{ steps.step.outputs.value }}; do
33+
echo "$file was changed"
34+
done
35+
36+
- name: List all changed files
37+
id: no-flow
38+
run: |
39+
for file in ${{ steps.source.outputs.all_changed_files_count }}; do
40+
echo "$file was changed"
41+
done
42+

0 commit comments

Comments
 (0)