We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34876a6 commit b6376b8Copy full SHA for b6376b8
1 file changed
.github/workflows/vartest.yml
@@ -15,18 +15,12 @@ jobs:
15
test:
16
runs-on: ubuntu-latest
17
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
30
31
32
- gh api repos/${{ github.repository }}/actions/variables/TEST_VAR
+ - name: Create test file
+ run: echo "Hello world" > my_file.txt
+ - name: Upload test artifact
+ uses: actions/upload-artifact@v4
+ with:
+ name: my-artifact
+ path: my_file.txt
+ retention-days: 1
+ overwrite: true
0 commit comments