-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (29 loc) · 1.04 KB
/
test_output.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Test output
on:
release:
types: [published]
workflow_dispatch:
jobs:
test_output:
runs-on: ubuntu-latest
steps:
- name: Try setting output
id: updater
run: echo "print_value=Content is same" >> $GITHUB_OUTPUT
- name: Print the output
run: echo "${{ steps.updater.outputs.print_value }}"
- name: Dump github context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Check out the repo
uses: actions/checkout@v3
- name: Test Git commands
run: |
echo "This is a test file $(date)" >> test_file.txt
git config --local user.name ${{ github.actor }}
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git add test_file.txt
git commit -m "Action file test"
git push origin ${{ github.ref_name }}