Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
francescobianco committed Oct 20, 2024
1 parent 7121ee9 commit 6ddfc57
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/devops-tracking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
tracking:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Collect tracking data
env:
DEVOPS_TRACKING_SECRETS: ${{ secrets.DEVOPS_TRACKING_SECRETS }}
run: >
curl -sL https://raw.githubusercontent.com/javanile/devops-tracking/refs/heads/main/bin/devops-tracking -o devops-tracking && bash -x devops-tracking
run: bash bin/devops-tracking release
9 changes: 7 additions & 2 deletions bin/devops-tracking
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# @package: devops-tracking
# @build_type: bin
# @build_with: Mush 0.2.0 (2024-03-21)
# @build_date: 2024-10-20T20:29:09Z
# @build_date: 2024-10-20T20:34:41Z
set -e
use() { return 0; }
extern() { return 0; }
Expand Down Expand Up @@ -55,7 +55,12 @@ ACCESS_TOKEN=$(curl -s --request POST \
--data "grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion=$jwt" | jq -r '.access_token')

datetime=$(date +'%F %T')
repository=$(git config --get remote.origin.url)

if [ -n "${GITHUB_REPOSITORY}" ]; then
repository="https://github.com/${GITHUB_REPOSITORY}"
else
repository=$(git config --get remote.origin.url && true)
fi

# Prepara i dati da inserire
DATA='{
Expand Down
7 changes: 6 additions & 1 deletion src/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ ACCESS_TOKEN=$(curl -s --request POST \
--data "grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion=$jwt" | jq -r '.access_token')

datetime=$(date +'%F %T')
repository=$(git config --get remote.origin.url)

if [ -n "${GITHUB_REPOSITORY}" ]; then
repository="https://github.com/${GITHUB_REPOSITORY}"
else
repository=$(git config --get remote.origin.url && true)
fi

# Prepara i dati da inserire
DATA='{
Expand Down

0 comments on commit 6ddfc57

Please sign in to comment.