initial commit.
This commit is contained in:
parent
f4f55866de
commit
b1dcd679ab
3 changed files with 219 additions and 164 deletions
22
CODE_OF_CONDUCT.md
Normal file
22
CODE_OF_CONDUCT.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Code of Conduct
|
||||
|
||||
This code of conduct outlines our expectations for participants within the open source community. Anyone who violates this code of conduct may be banned from contributing here.
|
||||
|
||||
## Requirements
|
||||
|
||||
- **Be friendly and patient.**
|
||||
- **Be welcoming** _We strive to be a community that welcomes and supports people of all backgrounds and identities._
|
||||
- **Be respectful** _Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners._
|
||||
|
||||
## Unacceptable Behaviour
|
||||
|
||||
- Offensive comments related to gender, sexual orientation, disability, mental illness, physical appearance, body size, race, age, regional discrimination, political or religious affiliation.
|
||||
- Threats of violence, both physical and psycological.
|
||||
- Incitement of violence towards any individual, including encouraging a person to commit suicide or to engage in self-harm.
|
||||
- Continued communication after requests to cease.
|
||||
|
||||
## Interactions
|
||||
|
||||
- Don't just tell somebody they are wrong, or what they have done is wrong. You must always explain what is wrong, and why it is wrong.
|
||||
- Don't reject contributions that are partially complete and then go and commit your own version. Try to work with the author to complete their work.
|
||||
- We encourage everyone to participate and are committed to building a community for all, we seek to treat everyone both as fairly and equally as possible.
|
33
action.yml
Normal file
33
action.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
name: "Get DateTime"
|
||||
description: "Get the current date and time in a specific format."
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- id: date
|
||||
shell: bash
|
||||
run: |
|
||||
{
|
||||
echo "datetime=$(date +'%Y-%m-%d %H:%M:%S')"
|
||||
echo "date=$(date +'%Y-%m-%d')"
|
||||
echo "time=$(date +'%H:%M:%S')"
|
||||
echo "atom=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
|
||||
echo "atom_with_millis=$(date -u +'%Y-%m-%dT%H:%M:%S.%3NZ')"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
outputs:
|
||||
datetime:
|
||||
description: "Current date and time in 'YYYY-MM-DD HH:MM:SS' format"
|
||||
value: ${{ steps.date.outputs.datetime }}
|
||||
date:
|
||||
description: "Current date in 'YYYY-MM-DD' format"
|
||||
value: ${{ steps.date.outputs.date }}
|
||||
time:
|
||||
description: "Current time in 'HH:MM:SS' format"
|
||||
value: ${{ steps.date.outputs.time }}
|
||||
atom:
|
||||
description: "Current date and time in 'YYYY-MM-DDTHH:MM:SSZ' format"
|
||||
value: ${{ steps.date.outputs.atom }}
|
||||
atom_with_millis:
|
||||
description: "Current date and time in 'YYYY-MM-DDTHH:MM:SS.SSSZ' format"
|
||||
value: ${{ steps.date.outputs.atom_with_millis }}
|
Loading…
Reference in a new issue