forked from VaultVulp/cookiecutter-python-template
-
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.
* Bump apprise action * Switch to s4cmd * Lock pytest-randomly (python-poetry/poetry#2372) * Mitigate changes to GITHUB_TOKEN
- Loading branch information
Showing
3 changed files
with
15 additions
and
13 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 |
---|---|---|
|
@@ -51,8 +51,8 @@ jobs: | |
- name: Config git | ||
run: | | ||
git config --local user.email "action@github.com" | ||
git config --local user.name "GitHub Action" | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
- name: Commit and push changes | ||
if: startsWith(github.ref, 'refs/tags/') == false | ||
|
@@ -69,8 +69,8 @@ jobs: | |
make badge | ||
env: | ||
MINIO_HOST: ${{ secrets.MINIO_HOST }} | ||
MINIO_KEY: ${{ secrets.MINIO_KEY }} | ||
MINIO_SECRET: ${{ secrets.MINIO_SECRET }} | ||
S3_ACCESS_KEY: ${{ secrets.MINIO_KEY }} | ||
S3_SECRET_KEY: ${{ secrets.MINIO_SECRET }} | ||
{%- endraw %} | ||
{%- endif %} | ||
{%- raw %} | ||
|
@@ -152,26 +152,28 @@ jobs: | |
VAULT_ADDR: ${{ secrets.VAULT_ADDR }} | ||
VAULT_ROLE_ID: ${{ secrets.VAULT_ROLE_ID }} | ||
VAULT_SECRET_ID: ${{ secrets.VAULT_SECRET_ID }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PACKAGES_TOKEN: ${{ secrets.PACKAGES_TOKEN }} | ||
LOKI_USERNAME: ${{ secrets.LOKI_USERNAME }} | ||
LOKI_PASSWORD: ${{ secrets.LOKI_PASSWORD }} | ||
LOKI_HOST: ${{ secrets.LOKI_HOST }} | ||
|
||
- name: Inform failure | ||
if: failure() | ||
uses: cstuder/apprise-ga@v2.0.0 | ||
uses: cstuder/apprise-ga@v3.0.1 | ||
with: | ||
{%- endraw %} | ||
args: '"CI/CD" "🟧: failed to publish a new release of {{cookiecutter.project_name}}."' | ||
title: "CI/CD" | ||
message: "🟧: failed to publish a new release for @giftonium_bot." | ||
{%- raw %} | ||
env: | ||
APPRISE_URL: "tgram://${{ secrets.APPRISE_TELEGRAM_TOKEN }}/${{ secrets.APPRISE_CHAT_ID }}/" | ||
|
||
- name: Inform success | ||
uses: cstuder/apprise-ga@v2.0.0 | ||
uses: cstuder/apprise-ga@v3.0.1 | ||
with: | ||
{%- endraw %} | ||
args: '"CI/CD" "🟩: successfully published a new release of {{cookiecutter.project_name}}."' | ||
title: "CI/CD" | ||
message: "🟩: successfully published a new release @giftonium_bot." | ||
{%- raw %} | ||
env: | ||
APPRISE_URL: "tgram://${{ secrets.APPRISE_TELEGRAM_TOKEN }}/${{ secrets.APPRISE_CHAT_ID }}/" | ||
|
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
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
Think it's better to skip the version, e.g.:
pytest-randomly = "!=3.6.0" # https://github.com/python-poetry/poetry/issues/2372#issuecomment-812558146