forked from grafana/agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Update file | ||
on: | ||
workflow_dispatch: {} | ||
permissions: | ||
contents: write | ||
jobs: | ||
update-file: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Check out main branch" | ||
uses: "actions/checkout@v4" | ||
with: | ||
ref: main | ||
- name: "Update file" | ||
run: | | ||
echo "$(date)" > date.txt | ||
- name: "Commit and push" | ||
run: | | ||
git config --local user.name "${GITHUB_ACTOR}" | ||
git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
#git remote add origin "https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" | ||
git add date.txt | ||
git commit -m "Update date.txt'" | ||
git push origin HEAD |