Skip to content

Commit b6376b8

Browse files
committed
pivot to artifacts - upload test
1 parent 34876a6 commit b6376b8

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

.github/workflows/vartest.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,12 @@ jobs:
1515
test:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- run: echo "${{ vars.TEST_VAR }}"
19-
- name: Set variable using gh
20-
env:
21-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
run: |
23-
gh api \
24-
--method PATCH \
25-
repos/${{ github.repository }}/actions/variables/TEST_VAR \
26-
-f name=TEST_VAR \
27-
-f value="hello_from_gh"
28-
- name: Verify variable
29-
env:
30-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
run: |
32-
gh api repos/${{ github.repository }}/actions/variables/TEST_VAR
18+
- name: Create test file
19+
run: echo "Hello world" > my_file.txt
20+
- name: Upload test artifact
21+
uses: actions/upload-artifact@v4
22+
with:
23+
name: my-artifact
24+
path: my_file.txt
25+
retention-days: 1
26+
overwrite: true

0 commit comments

Comments
 (0)