Skip to content

Commit

Permalink
add update-file.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rfratto committed Oct 13, 2023
1 parent 0a5a5aa commit a2ff26d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/update-file.yml
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

0 comments on commit a2ff26d

Please sign in to comment.