Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update draft release github action #8037

Merged
merged 1 commit into from May 16, 2021
Merged

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented May 16, 2021

ditto on the draft action file

@d-a-v d-a-v merged commit efb0341 into esp8266:master May 16, 2021
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Set GIT tag name
run: |
# Sets an environment variable used in the next steps
echo "::set-env name=TRAVIS_TAG::$(git describe --exact-match --tags)"
echo "TRAVIS_TAG=$(git describe --exact-match --tags)" >> $GITHUB_ENV
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that there is $GITHUB_REF set to refs/tags/1.2.3 when it's tag, so bash also can do ${GITHUB_REF:10}
ref. https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables and letscontrolit/ESPEasy@4082a3f#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721L91 (but I gave up on using the repo for tag retrieval)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants